You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker version
Client version: 0.8.0
Go version (client): go1.2
Git commit (client): cc3a8c8
Server version: 0.8.0
Git commit (server): cc3a8c8
Go version (server): go1.2
$ ~/bin/boot2docker up
[2014-02-10 21:58:12] boot2docker-vm is already running.
$ echo $DOCKER_HOST
tcp://
$ fig --version
fig 0.2.1
$ fig up
Couldn't connect to Docker daemon at http:/ - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
docker build . worked fine for me, but fig seems unable to handle the tcp:// URL.
Yeah, we need to fall back to localhost and 4243 as appropriate when the host and/or port isn't specified. For now, setting DOCKER_HOST=tcp://localhost:4243 should fix it.
$ docker version
Client version: 1.1.1
Client API version: 1.13
Go version (client): go1.2.1
Git commit (client): bd609d2
Server version: 1.1.1
Server API version: 1.13
Go version (server): go1.2.1
Git commit (server): bd609d2
$ ~/bin/boot2docker status
running
$ echo $DOCKER_HOST
tcp://192.168.59.103:2375
$ fig --version
fig 0.5.1
$ fig up
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
1) Change the DOCKER_OPTS in /etc/default/docker to:
DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
2) Restart docker
sudo restart docker
3) Make sure that docker is running on localhost:4243
$ netstat -ant |grep 4243
tcp 0 0 127.0.0.1:4243 0.0.0.0:* LISTEN
4) Set DOCKER_HOST (.bashrc)
export DOCKER_HOST=tcp://localhost:4243
$ echo $DOCKER_HOST
tcp://localhost:4243
5) And now
$ fig run web rails new . --force --database=postgresql --skip-bundle
NOTE, I have:
Ubuntu 14.04
Docker version 1.1.2, build d84a070
Fig 0.5.2
Thank you for the systemd option tip.
To be clear about localhost:4234, I did set this environment variable because the default http+unix://var/run/docker.sock assumed by docker-compose were not connecting (and I though the daemon were defaulting to localhost:4234).
$ docker-compose up
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.
Following mucsi96's piece of advice (#88 (comment)), I added myself to the docker group and now docker-compose works fine.
The problem is on Your docker instalation. I got the same isue here for awhile.
Just add your user to docker group, and try to run docker version, you shuld get something like this:
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:20:08 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:20:08 UTC 2015
OS/Arch: linux/amd64
But if you got some instalation issue you won't be able to see server info.
You can always run with root user sudo docker-compose up.
I hope that helps.
Activity
aanand commentedon Feb 10, 2014
Yeah, we need to fall back to
localhostand4243as appropriate when the host and/or port isn't specified. For now, settingDOCKER_HOST=tcp://localhost:4243should fix it.stefanw commentedon Feb 10, 2014
Great, this works, thanks!
bfirsh commentedon Feb 10, 2014
Bug in docker-py: docker/docker-py#166
gregory commentedon Jul 22, 2014
Anyone experiencing the same issue?
rusllonrails commentedon Aug 7, 2014
@gregory yeah, I got same on:
Still not found the way to fix it.
Added detailed explanation here #73
rusllonrails commentedon Aug 8, 2014
@gregory
Found the solution.
NOTE, I have:
Thanks to http://serverascode.com/2014/05/25/docker-shipyard-multihost.html
gu-fan commentedon Sep 5, 2014
Thanks, Got the same issue, and fixed by this thread
bfirsh commentedon Sep 11, 2014
Think it's fixed now. docker/docker-py#259
jaydattdesai commentedon Sep 12, 2014
@RuslanHamidullin - Thanks for the solution, it works for me even on ubuntu 12.04
rusllonrails commentedon Sep 12, 2014
@jaydattdesai 🍻
rameshtyaga commentedon Dec 10, 2014
@RuslanHamidullin your solution works for me as well, Thank you.
I have
rusllonrails commentedon Dec 10, 2014
@trkrameshkumar 🍻
rameshtyaga commentedon Dec 10, 2014
@RuslanHamidullin but every time i log out or restart my laptop, i have to follow these steps again
how can we make this configuration permanent.
rameshtyaga commentedon Dec 10, 2014
i added this line
export DOCKER_HOST=tcp://localhost:4243on
.bashrcfile now it is loaded very time27 remaining items
thaJeztah commentedon Sep 5, 2015
Good to hear! Just a tip; when customizing systemd options, the best approach is to not modify the default docker.service, but to use "drop-ins"; this section explains how to do that; https://docs.docker.com/articles/systemd/#custom-docker-daemon-options
I still wonder where the
DOCKER_HOSTlocalhost:4234came from (since you mentioned this was on a fresh install).@dnephin is there anything to be done in docker-compose w.r.t not supporting
fd://?Glideh commentedon Sep 7, 2015
Thank you for the systemd option tip.
To be clear about
localhost:4234, I did set this environment variable because the defaulthttp+unix://var/run/docker.sockassumed bydocker-composewere not connecting (and I though the daemon were defaulting tolocalhost:4234).thaJeztah commentedon Sep 7, 2015
@Glideh ah, thanks for explaining, yes
4234was the "old" port, we now have 2375/2376 registered at iana.Glideh commentedon Sep 7, 2015
I see, keeping in mind the default was actually
fd://thaJeztah commentedon Sep 7, 2015
@Glideh yes, perhaps a separate issue should be created for that?
Glideh commentedon Sep 7, 2015
That's right, let me create one
elouanKeryell-Even commentedon Sep 17, 2015
I had the following error:
Following mucsi96's piece of advice (#88 (comment)), I added myself to the
dockergroup and nowdocker-composeworks fine.ismailsunni commentedon Oct 15, 2015
@WinstonSureChill glad, had the same problem and the same solution as yours. Thanks
lrkwz commentedon Nov 16, 2015
@WinstonSureChill same problem but adding myself to
dockergroup did not solve :-(Jwpe commentedon Nov 16, 2015
@lrkwz I had the same issue - turned out it was due to a corrupted container as described in moby/moby#17688
brunodles commentedon Nov 22, 2015
The problem is on Your docker instalation. I got the same isue here for awhile.
Just add your user to docker group, and try to run
docker version, you shuld get something like this:But if you got some instalation issue you won't be able to see server info.
You can always run with root user
sudo docker-compose up.I hope that helps.
Mahmoudz commentedon May 14, 2016
I had the same error, after 15 min of debugging. Turns out all it needs is a
sudo:)Check out [Create a Docker group] here https://docs.docker.com/engine/installation/linux/ubuntulinux/ to get rid of the sudo prefix.
aleogr commentedon Jun 14, 2016
@rusllonrails thank you mate
Merge pull request docker#88 from rakyll/more-main-dont-export
Fix vet and lint issues (docker#88)