garethr-docker
garethr-docker copied to clipboard
email is deprecated in Docker > 1.13
In docker 1.13 the email flag for the registry login is deprecated, but the code in registry.pp
https://github.com/garethr/garethr-docker/blob/master/manifests/registry.pp#L46 requieres it.
Just ran into this issue.. I'm running Docker v1.12.2 and attempted to call docker::registry passing in only a username and password. As a result my puppet run failed with the following error:
Error: Cannot perform an interactive login from a non TTY device
If I include the email parameter and populate it with anything, puppet runs fine and configures docker with the provided username and password.
Relates to https://github.com/garethr/garethr-docker/issues/657
On Docker 17.06, you get an error if you use the -email tag in your docker login command. So since Docker 17.06 it is impossible to login into a registry using Puppet :( If you specify the email in docker::registry you get an error because the -email tag has been removed. If you don't specify the email in docker::registry you thet the "Cannot perform an interactive login from a non TTY device" error.
Houston, we have a problem!!
+1
Encounter the same error. Modify manually the registry.pp and remove all reference to the email. After that the registry works perfectly I suppose an easy fix can be done for >17.06
But already done on the supported docker: puppetlabs/puppetlabs-docker So basicly you can close this case.