garethr-docker icon indicating copy to clipboard operation
garethr-docker copied to clipboard

email is deprecated in Docker > 1.13

Open dwerder opened this issue 7 years ago • 5 comments

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.

dwerder avatar Sep 12 '16 13:09 dwerder

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.

jbehrends avatar Nov 11 '16 17:11 jbehrends

Relates to https://github.com/garethr/garethr-docker/issues/657

HadesArchitect avatar Sep 03 '17 22:09 HadesArchitect

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!!

fgabriel78 avatar Sep 07 '17 19:09 fgabriel78

+1

yaron-idan avatar Nov 16 '17 14:11 yaron-idan

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.

joaquin386 avatar Jan 25 '18 15:01 joaquin386