-
Notifications
You must be signed in to change notification settings - Fork 120
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-compose not running from terminal #720
Comments
Did you have a previous version of Docker for Mac installed? Did you upgrade to 1.12.1? Beta 26/1.12.1 should have fixed the underlying issue in #47 which resulted in incorrect socket linking and installation location. |
I may have had a previous version on at some point but I don't think it was installed when I loaded 1.12.1. It would have been pre Sierra. Just now I uninstalled again, and reinstalled the beta channel and that put 1.12.2-rc1-beta27 (179c18xc) on my machine but it still got the failure (and the docker-compose missing):
Other notes. I have Xcode loaded. I also have my home directory on a removable drive. |
I installed everything on a fresh computer and everything worked. So maybe something with a previous install or my non-standard user profile location... |
One thing in comparing the two installs, on the working machine i have docker, docker-compose and docker-machine in /usr/local/bin. On the malfunctioning device I only have docker in /usr/local/bin. |
To fix for now for myself running...
|
resulting in....
|
Hello, just wanted to chime in and mention that I was having the same issue. docker.sock, docker-machine, and docker-compose were not properly symlinked. I'm running macOS Sierra and tried both 1.12.1 as well as the latest beta versions 1.12.2-rc1-beta26 and 1.12.2-rc1-beta27. I don't know if this is helpful, but my user folder is on a usb drive instead of the normal users folder. |
The missing symlinks is a known issue that we are tracking in #785, so closing. |
@samoht @tgorgolione @dsheets Interesting... I was still having this issue. I was seeing how to make the symbolic links permanent when I stumbled across this note from http://apple.stackexchange.com/questions/115646/how-can-i-create-a-symbolic-link-in-terminal saying that:
Once I disabled System Integrity Protection and did a factory reset on Docker (1.13.0-rc2-beta31) everything seemed to work! I'm not 100% sure that a factory reset would have fixed it before the
from safe mode but I think this was the issue. Might want to verify/document/and add this info to some other bugs like #47... |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Actual behavior
Information
/Applications/Docker.app/Contents/Resources/bin/docker-compose
but according to the documentation https://docs.docker.com/docker-for-mac/docker-toolbox/ I shouldn't have to do anything special to get it to run out of the box.
as described in this issue: Cannot connect to the Docker daemon. Is the docker daemon running on this host? #47
sudo ln -sf ~/Library/Containers/com.docker.docker/Data/s60 /var/run/docker.sock
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: