Skip to content
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

Dockerlaunch socket stuck after docker dies #1

Open
panch13114 opened this issue Jul 7, 2016 · 7 comments
Open

Dockerlaunch socket stuck after docker dies #1

panch13114 opened this issue Jul 7, 2016 · 7 comments

Comments

@panch13114
Copy link

panch13114 commented Jul 7, 2016

The dockerlaunch socket is recreated as a root-owned volume on docker restart if the docker daemon is unexpectedly killed

@philtweir
Copy link
Member

philtweir commented Jul 7, 2016

In the glossia-server-side directory, try the following:

export COMPOSE_API_VERSION=$(docker version | grep 'Server API' | awk '{ print $NF }')
docker-compose -f docker-compose.local.yml rm

then go for ./start-local.sh

@panch13114
Copy link
Author

panch13114 commented Jul 7, 2016

I get the following error, after executing the above commands.

For the first command:
I get permission denied error
For the second command:
To include them, use docker-compose rm --all.
This will be the default behavior in the next version of Compose.

ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

@philtweir
Copy link
Member

philtweir commented Jul 7, 2016

Oh, sorry, you need to be root or using sudo. If you want, you could do it:

sudo docker version | grep 'Server API' | awk '{ print $NF }'

Should return 1.18 or 1.21, or similar - put that in literally at [VER] below.

sudo COMPOSE_API_VERSION=[VER] docker-compose -f docker-compose.local.yml rm --all

@panch13114
Copy link
Author

I tried
sudo COMPOSE_API_VERSION=1.18 docker-compose -f docker-compose.local.yml rm --all
It removed most of glossia bar and run etc.
I started the docker service again and tried to launch dockerlaunchd.
Get the same error

@philtweir
Copy link
Member

If you now stop docker (sudo service docker stop), then rm -rf /var/run/dockerlaunch, then start docker (sudo service docker start) does that directory appear again owned by root?

@panch13114
Copy link
Author

Thank you. It worked

@philtweir
Copy link
Member

OK, great - I'll leave this issue open, as we need to find a way of avoiding this in the first place...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants