简体   繁体   English

docker-compose 正在使用缓存

[英]docker-compose is using a cache

I can't get docker-compose up to work.我无法让 docker-compose 开始工作。 If I docker-compose --verbose up I get the following...如果我 docker-compose --verbose up 我得到以下...

compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': ['-c', '["bin/rails", "s", "-b" "0.0.0.0]'],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': ['/bin/sh', '-c', '["bin/rails", "s", "-b" "0.0.0.0]'],
            'Domainname': '',
            'Entrypoint': None,
            'Env': ['PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
                    'RUBY_MAJOR=2.7',

A one point in the past my command was missing the double quotes after "0.0.0.0".过去,我的命令在“0.0.0.0”之后缺少双引号。 However, I've updated my Dockerfile such that line now says但是,我已经更新了我的 Dockerfile,现在该行显示

CMD ["bin/rails", "s", "-b", "0.0.0.0"]

How do I get docker to use my Dockerfile?如何让 docker 使用我的 Dockerfile? When I run docker-compose up I get当我运行 docker-compose up 我得到

web_1  | /bin/sh: 1: Syntax error: Unterminated quoted string

I had to我不得不

docker system prune -a

and then docker-compose up worked.然后 docker-compose up 工作。 There goes an afternoon I'll never get back.有一个下午我再也回不去了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM