This MR updates the docker engine so we can use NewClientWithOpts and version negotiation so that cleaning up the tc containers works. Previously, we were using the default version of the docker API, 1.23, where cleanup with AutoRemove as a Docker Host Config is overridden to false by the Docker engine and does not actually clean anything up.
With this MR we get version negotiation so that it will select the appropriate version of the Docker API to match the Docker version of where Pumba is being ran so there will be both explicit compatibility and the ability for the containers to be cleaned up so long as Docker is > 1.13.0.
This MR updates the docker engine so we can use
NewClientWithOpts
and version negotiation so that cleaning up the tc containers works. Previously, we were using the default version of the docker API, 1.23, where cleanup withAutoRemove
as a Docker Host Config is overridden tofalse
by the Docker engine and does not actually clean anything up.With this MR we get version negotiation so that it will select the appropriate version of the Docker API to match the Docker version of where Pumba is being ran so there will be both explicit compatibility and the ability for the containers to be cleaned up so long as Docker is > 1.13.0.