Added --force-rm to compose build.
It's a flag passed to docker build that removes the intermediate containers left behind on fail builds. Signed-off-by: Adrian Budau <budau.adi@gmail.com>
This commit is contained in:
parent
8fb44db92b
commit
4c2eb17ccd
10 changed files with 48 additions and 5 deletions
|
|
@ -87,7 +87,7 @@ __docker_compose_services_stopped() {
|
|||
_docker_compose_build() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--help --no-cache --pull" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--help --force-rm --no-cache --pull" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
__docker_compose_services_from_build
|
||||
|
|
|
|||
|
|
@ -192,6 +192,7 @@ __docker-compose_subcommand() {
|
|||
(build)
|
||||
_arguments \
|
||||
$opts_help \
|
||||
'--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.]' \
|
||||
'*:services:__docker-compose_services_from_build' && ret=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue