Sco*_*ang 3 build docker docker-compose
相当于docker build --pull 。在 docker-compose 中?
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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5382 次 |
| 最近记录: |