docker compose with build --pull 选项

标签 docker docker-compose build

docker-compose 中的 docker build --pull . 是什么?

docker compose 引用仅指示构建上下文、构建文件和构建参数,但我找不到在 docker compose 中指定构建选项的语法。

最佳答案

同样是docker-compose build --pull:

$ docker-compose build --help
Build or rebuild services.

Services are built once and then tagged as `project_service`,
e.g. `composetest_db`. If you change a service's `Dockerfile` or the
contents of its build directory, you can run `docker-compose build` to rebuild it.

Usage: 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.

关于docker compose with build --pull 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37955214/

相关文章:

docker - kompose 不公开 NodePort - 适用于桌面 Windows 的 Docker

docker-compose "No such file or directory"用于 sh 命令

ubuntu - (增量)重建 Debian/Ubuntu 软件包

docker - 管理 docker 容器安全补丁

firefox - Xvfb & Docker - 无法打开显示

docker - 使用 docker-compose 设置 Kafka

Eclipse 3.4 ant 任务挂起

docker - Golang Docker SDK 镜像构建失败并出现 COPY

rest - 如何使用隔离的前端托管多服务解决方案

windows - Ant 和 Chef 之间的部署/构建工具