following the 'go vet' suggestions for the docker package.