You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build a template using the docker plugin where the login configuration option is true and the login_server, login_username, and login_password options have valid values and the build option is defined (i.e., building from bootstrapped Dockerfile), the plugin does not authenticate before running the docker build step. The documentation does not clearly indicate that authenticating against a private repository would not be supported for a bootstrapped build, and this functionality would be very helpful.
Reproduction Steps
Define Packer template with defined build option, login, login_server, login_username, and login_password options.
Run packer build command where defined Dockerfile is based upon image in repository requiring authentication (e.g., "registry1.dso.mil")
Overview of the Issue
When attempting to build a template using the docker plugin where the
login
configuration option istrue
and thelogin_server
,login_username
, andlogin_password
options have valid values and thebuild
option is defined (i.e., building from bootstrapped Dockerfile), the plugin does not authenticate before running thedocker build
step. The documentation does not clearly indicate that authenticating against a private repository would not be supported for a bootstrapped build, and this functionality would be very helpful.Reproduction Steps
build
option,login
,login_server
,login_username
, andlogin_password
options.packer build
command where defined Dockerfile is based upon image in repository requiring authentication (e.g., "registry1.dso.mil")Plugin and Packer version
Simplified Packer Buildfile
...with "files/Dockerfile" content including:
Operating system and Environment details
Issue exists on both tested systems:
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: