-
Notifications
You must be signed in to change notification settings - Fork 2k
No connection to Docker deamon on OS X Docker Toolbox #3163
Comments
Update 2: After reading Docker Compose#1590, I realized that somehow the last update for Docker Toolbox seems to have killed either my Example Config: {
"quay.io": {
"auth": "xXxXxXxXxXx=",
"email": "username@example.com"
},
"https://index.docker.io/v1/": {
"auth": "xXxXxXxXxXx=",
"email": "username@example.com"
},
"https://index.example.com": {
"auth": "XxXxXxXxXxX=",
"email": "username@example.com"
}
} Now the Error message changes: $ docker-compose --verbose up -d
compose.config.config.find: Using configuration files: ./docker-compose.yml
docker.auth.auth.load_config: Couldn't find 'auths' or 'HttpHeaders' sections
docker.auth.auth.load_config: need more than 1 value to unpack
docker.auth.auth.load_config: Attempting to parse legacy auth file format
docker.auth.auth.load_config: list index out of range
docker.auth.auth.load_config: All parsing attempts failed - returning empty config
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "/compose/compose/cli/main.py", line 55, in main
File "/compose/compose/cli/docopt_command.py", line 23, in sys_dispatch
File "/compose/compose/cli/docopt_command.py", line 26, in dispatch
File "/compose/compose/cli/main.py", line 172, in perform_command
File "/compose/compose/cli/command.py", line 52, in project_from_options
File "/compose/compose/cli/command.py", line 85, in get_project
File "/compose/compose/cli/command.py", line 68, in get_client
File "/compose/venv/lib/python2.7/site-packages/docker/api/daemon.py", line 78, in version
File "/compose/venv/lib/python2.7/site-packages/docker/utils/decorators.py", line 47, in inner
File "/compose/venv/lib/python2.7/site-packages/docker/client.py", line 112, in _get
File "/compose/venv/lib/python2.7/site-packages/requests/sessions.py", line 477, in get
File "/compose/venv/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
File "/compose/venv/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
File "/compose/venv/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
requests.exceptions.ConnectionError: ('Connection aborted.', error(2, 'No such file or directory')) Question: Is there some Command line function that allows me to regenerate the file? I read that |
Hi @franz-josef-kaiser thanks for the issue. Anyway, first step is to try and connect to the Docker daemon.
Since the VM IP is reachable that (mostly) rules out wonky network config. Sounds to me like the Docker daemon is not starting successfully for some reason. Another thing to try: |
Hi @nathanleclaire thanks for getting on this.
Before destroying and rebuilding the VM, I dumped the complete contents of the
|
@franz-josef-kaiser, In the last block posted you did not |
@nathanleclaire That was a good catch. And that solved it! Can I still be of some help backtracing whatever caused this? Having a fix for the stack is nice, but it might hit others as well and in case I can I am happy to help with getting to the root of this. |
@franz-josef-kaiser Unfortunately I think it's gone to the wind now, but if you encounter any more issues, feel free to open more tickets. Thanks! |
@nathanleclaire I guess you can reopen the issue … just had to repeat the destroying/creating the VM and sourcing the ENV again after a restart.
|
@nathanleclaire and again it happened. |
This keeps happening over and over again… |
@franz-josef-kaiser Please post |
I have the same issue on OSX. Tried a few other things but @franz-josef-kaiser's command |
All I needed was to run |
tried eval $(docker-machine env) first .. didn't work. Had to recreate docker machine first. |
@nathanleclaire - Hopefully I can shed some light - I think I have a use case that these guys probably are also having... I created a docker-machine with digital ocean driver with the smallest droplet size* Why? because DO only lets you scale up or down if you keep the same storage space, so I start small and then manually go into DO and scale my server up. At the same time, I manually install docker-compose on DO droplet, which upgrades docker package on server. I think the docker upgrade triggered from the docker-compose installation is what is breaking the link. docker-machine ssh xxxx works, but no other docker-machine commands seem to work after this particular use case |
To verify that the env are correctly set go there and follow that It should work : Docker Environement Variables help |
Issue:
The same goes for Docker:
It worked without any problem for weeks, stopped working today. Strange also is that the
docker-machine
listsdefault
as running machine, butactive
shows no active machine.Diff of times:
It seems the
time
got stuck on the Docker Machine as seen in #1954 and PR #2006 .The box itself is "alive" and reachable:
Docker Machine itself can't connect:
Exporting the correct environment variables is not possible:
Checking if the certs are not matching and messed up during provisioning – done for
ca.pem
,cert.pem
Result: All diffs without any result, so no difference there. Also
docker-machine ssh default
works.I then ran
docker-machine regenerate-certs default
to see if that would trigger anything with the following result:Running now a verbose Docker Compose up call errors out missing file:
Update: After restarting the computer and opening Docker Machine (Docker Quickstart Terminal), I got the following happening without any user interaction:
Question:
What file is missing in this error message (from above) that Docker Compose complains about?
docker.auth.auth.load_config: File doesn't exist
Details:
OS X 10.11.3
Please advice if there is anything I can do to further debug this one or add additional details.
The text was updated successfully, but these errors were encountered: