I’ve created a SWARM environment, added a host (same host which is running docker & the rancher-server container), ran the agent start script. All well & good so far. If I now add a project & try to run it, I get an error (logged in r-Swarm_swarm-agent_1):
time="2016-06-17T12:32:46Z" level=info msg="Running docker-compose [-p m up -d] in /tmp/docker-compose693709405" eventId=04ef0855-ce78-438d-a964-f20f0969b9f4
time="2016-06-17T12:32:46Z" level=info msg="output: Couldn't connect to Docker daemon at http://docker:2375 - is it running?" eventId=04ef0855-ce78-438d-a964-f20f0969b9f4
time="2016-06-17T12:32:46Z" level=info msg="output: " eventId=04ef0855-ce78-438d-a964-f20f0969b9f4
I have not set http://docker:2375 anywhere - it seems to be some (incorrect?) default.
Can anyone advise where DOCKER_HOST should be set such that r-Swarm_swarm-agent_1 picks up the change? Or is that not the correct soln?
I have 3 VMs (1- for rancher server, 2- for agent nodes):
$ uname
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 x86_64 GNU/Linux
$ docker -v
Docker version 1.11.1, build 5604cbe
$ docker-compose -v
docker-compose version 1.7.1, build 0a9ab35
I use this commands to start rancher server and agents:
$ docker run -d
-v /home/user/rancher/mysql:/var/lib/mysql
-v /home/user/rancher:/var/log/mysql
-v /home/user/rancher/cattle:/var/lib/cattle
–restart=always
–name=rancher-server
-p 8080:8080
rancher/server
docker-compose.yml content is:
grf:
image: grafana/grafana
When I start docker-compose.yml (Swarm environment -> Projects -> Add Project), I get an the same error:
Error (exit status 1: Couldn’t connect to Docker daemon at http://docker:2375 - is it running? If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable. )
When I start docker-compose.yml (Swarm environment -> System -> Add Stack), I get service in running state (Running grf_grf_1).
Any ideas? How can I fix the error with connection to the daemon?
Sorry for the late reply! I have since collected some additional info:
rancher server 1.1.0
rancher agent v1.0.2
rancher agent instance v0.8.1
rancher swarm agent 0.1.2
docker 1.10.2 (latest version I could find built against go 1.5)
Same when trying to start Wordpress from the Catalog:
exit status 1: Couldn’t connect to Docker daemon at http://docker:2375 - is it running?\n\nIf it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable.