2016-06-21 93 views
0

什麼是碼頭構建相當於 - 拉伸。在Docker-Composition中是否使用碼頭構建與構建 - 拉伸選項

泊塢窗撰寫僅供參考指示建立方面,建立檔案,並建立ARGS,但我無法找到語法來指定編譯選項泊塢窗內組成

感謝

回答

0

這是相同的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.