File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,13 @@ function kube::build::short_hash() {
392
392
# a workaround for bug https://github.com/docker/docker/issues/3968.
393
393
function kube::build::destroy_container() {
394
394
" ${DOCKER[@]} " kill " $1 " > /dev/null 2>&1 || true
395
- " ${DOCKER[@]} " wait " $1 " > /dev/null 2>&1 || true
395
+ if [[ $( " ${DOCKER[@]} " version --format ' {{.Server.Version}}' ) = 17.06.0* ]]; then
396
+ # Workaround https://github.com/moby/moby/issues/33948.
397
+ # TODO: remove when 17.06.0 is not relevant anymore
398
+ DOCKER_API_VERSION=v1.29 " ${DOCKER[@]} " wait " $1 " > /dev/null 2>&1 || true
399
+ else
400
+ " ${DOCKER[@]} " wait " $1 " > /dev/null 2>&1 || true
401
+ fi
396
402
" ${DOCKER[@]} " rm -f -v " $1 " > /dev/null 2>&1 || true
397
403
}
398
404
You can’t perform that action at this time.
0 commit comments