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
docker login exits with fatal "inappropriate ioctl for device" when run from cloud-init #12959
Comments
|
Hi! We would like to take this time to remind you of the information we need to debug the problem you are seeing. This is an automated response so if this ticket is not about a bug, do not fret. If you fail to provide this information within 7 days, we will close this because we cannot debug your issue. We can reopen whenever the information is provided. Thank you. Please see: Description of problem:
`docker version`:
`docker info`:
`uname -a`:
Environment details (AWS, VirtualBox, physical, etc.):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual Results:
Expected Results:
Additional info:
#ENEEDMOREINFO |
|
mkdir /home/root and exporting HOME as /home/root before doing docker login did the trick. |
|
Following on from @fvant, the reason that works is because docker needs access to the
In my situation, I have a host machine which runs a Jenkins container with With docker login, both the client and server appear to require access to the same directory/file, Hope this helps anyone else confused by the matter. |
|
@adamkdean Thanks. Having the same problem and this helps me, as I'm confused by the matter. In case you still have problems, you may need to remove curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910822 All of these workarounds do nothing towards getting the root cause addressed... |
I am running a script to run a container from a cloud-init script (so as root).
docker ps works fine but docker login always exits with that fatal error.
BTW i do have a .dockercfg file and provide only -u 'myuser' server in the script. (adding a -e and/or -p have same result)
Running the same script in a ssh shell works fine. Could the code try to read from console, which is not there when script is run at boot??
docker info:
Containers: 0
Images: 37
Storage Driver: devicemapper
Pool Name: docker-202:1-263638-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 1.452 GB
Data Space Total: 107.4 GB
Metadata Space Used: 2.298 MB
Metadata Space Total: 2.147 GB
Udev Sync Supported: true
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.89-RHEL6 (2014-09-01)
Execution Driver: native-0.2
Kernel Version: 3.14.35-28.38.amzn1.x86_64
Operating System: Amazon Linux AMI 2015.03
CPUs: 1
Total Memory: 996.3 MiB
docker version:
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.3.3
Git commit (client): a8a31ef/1.5.0
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.3.3
Git commit (server): a8a31ef/1.5.0
Environment: AWS
How reproducible: consistently, duplicating the docker login line, behave the same
The text was updated successfully, but these errors were encountered: