Docker compose ignores my Dockerfile when I use the build command

↘锁芯ラ 提交于 2019-12-05 21:17:56

run docker-compose build after changing docker-comopse.yml and then docker-compose up

Before you type docker-compose up, you should build images with docker-compose build [options] [SERVICE...].

Options:
--force-rm  Always remove intermediate containers.
--no-cache  Do not use cache when building the image.
--pull      Always attempt to pull a newer version of the image.

In your case, ex: docker-compose build --no-cache web

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!