Docker Compose not starting on mac
Answered
I am following this guide: https://www.jetbrains.com/help/idea/2016.3/docker.html#d213398e640But I cannot get it to work with my docker-compose.yml.
No problem following the guide and configuring my project. However it does not start when I try to start the docker run configuration. All I get is a red box on the whale icon in the Docker tool window in IDEA. Hovering it gives me io.netty.channelConnectTimeoutException: Connection timed out 192.168.99.100:2376
I am running the latest Docker for Mac and I have no issues running in command line with: docker-compose up
.
Any ideas?
(This has also been posted on stackoverflow: http://stackoverflow.com/questions/42019222/docker-in-intellij-idea-for-mac-not-working)
Please sign in to leave a comment.
Hello Johan,
Please try to do the following:
Open Preferences | Build, Execution, Deployment | Clouds. Find your Docker configuration and change API URL from 192.168.99.100:2376 to unix:///var/run/docker.sock
Regards,
Nikolay
Hi, thanks for the quick reply.
This didn't work. It says "only supported on linux"
Could you please clarify version of Idea and docker plugin you are using?
The feature to connect using unix:///var/run/docker.sock was implemented for plugin 2.5.0 which is compatible with IDEA 2017.1 EAP for now.
Please see https://youtrack.jetbrains.com/issue/IDEA-159223
In case you are using older version you can try workaround with socat described in the issue mentioned above.
Ok, thanks. I will continue to use the command line until 2017 is released then.