hashicorp / packer-plugin-docker

Packer plugin for Docker Builder
https://www.packer.io/docs/builders/docker
Mozilla Public License 2.0
31 stars 25 forks source link

Docker builder: is it possible to stay logged-in once authenticated on a private registry? [ plugin credentials ] #65

Open hc-github-team-packer opened 2 years ago

hc-github-team-packer commented 2 years ago

This issue was originally opened by @boblechat in https://github.com/hashicorp/packer/issues/11180 and has been migrated to this repository. The original issue description is below.


I have a use case where I pull a base image from a private registry where I need to log into. Then in my build process, I tag and push the newly created image in the same private registry.

When I read the log produced, I see that packer log out automatically after pulling the image which is a bit annoying because I have to log in again in the docker-tag post-processor.

Is there a way to stay connected once authenticated?

azr commented 2 years ago

Currently, each plugin implements/call for its own login/creation independently of other plugins. There is a 'centralized' plugin credential feature we would like to build, but it's not for right now 🙂.