Moby: When trying to use `docker login` in a non-interactive shell, it returns wrong error

Created on 9 Feb 2016  ·  3Comments  ·  Source: moby/moby

Same as #12959

How to reproduce: try to use docker login --username=right-username --email=right-email --password="". You will get an error inappropriate ioctl for device. It is possible to log in with an interactive shell.

Shell: bash.

Kernel: Linux icweb-logsearch-03-production-us-west-1 3.14.48-33.39.amzn1.x86_64 #1 SMP Tue Jul 14 23:43:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

OS: Amazon Linux 15.03

Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5/1.9.1
 Built:
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5/1.9.1
 Built:
 OS/Arch:      linux/amd64
kinenhancement versio1.9

Most helpful comment

Also having this in a jenkins build script.

Update: found a solution to my problem. TLDR: make sure the docker server and docker client both have access to the same io location exposed in the HOME environment variable.

All 3 comments

Also having this in a jenkins build script.

Update: found a solution to my problem. TLDR: make sure the docker server and docker client both have access to the same io location exposed in the HOME environment variable.

@adamkdean are you sure it's needed on the server / daemon as well?

@theJeztah I'm having this issue again. It's definitely needed, but luckily, I see the guy above has posted a solution.

Was this page helpful?
0 / 5 - 0 ratings