Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Docker Hub #736

Open
rohitbordia opened this issue Nov 2, 2017 · 1 comment
Open

Connecting to Docker Hub #736

rohitbordia opened this issue Nov 2, 2017 · 1 comment

Comments

@rohitbordia
Copy link

How can we connect to hub.docker.com?
docker::registry { 'hub.docker.com':
username => 'user',
password => 'password'
}

/Stage[main]/Main/Docker::Registry[hub.docker.com]/Exec[hub.docker.com auth]/returns: Error: Cannot perform an interactive login from a non TTY device

@rohitbordia rohitbordia changed the title Docker Hub Connecting to Docker Hub Nov 2, 2017
@rohitbordia
Copy link
Author

Looked at the code : if $ensure == 'present' {
if $username != undef and $password != undef and $email != undef {
$auth_cmd = "${docker_command} login -u '${username}' -p "${password}" -e '${email}' ${server}"
$auth_environment = "password=${password}"
}
elsif $username != undef and $password != undef {
$auth_cmd = "${docker_command} login -u '${username}' -p "${password}" ${server}"
$auth_environment = "password=${password}"
}

not sure why it does not go in elsif block

cegeka-jenkins pushed a commit to cegeka/puppet-docker that referenced this issue Apr 17, 2024
pdksync - PDK Update - Replace Travis and Appveyor with Github Actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant