Open huyz opened 1 year ago
As I explained in https://github.com/hashicorp/packer-plugin-docker/pull/142#issuecomment-1416733371 , the best solution is simply to not do login = true
and just handle it on my own, out of band.
So perhaps this may not even be considered a bug as long as the documentation were updated to make it clear that docker login
isn't supported for simultaneous docker-push post-processors.
Overview of the Issue
When I'm building 3 different images in parallel and pushing them to Docker Hub, the first one to complete will do a
docker logout
causing errors in the other 2 pushes.Reproduction Steps
Plugin and Packer version
Packer v1.8.5 Docker plugin v1.0.8
Simplified Packer Buildfile
Operating system and Environment details
Log Fragments and crash.log files
See the 2
denied: requested access to the resource is denied
below: