Skip to content

Docker command not found #2

@Globegitter

Description

@Globegitter

I have found some more time to try this nginx setup again and with Boot2docker 1.3 Mac support seems to have improved as well.
Anyway, when I am running this fig set up and loading a new docker container (as well via fig, with VIRTUAL_HOST and VIRTUAL_PORT set in the fig.yml) I am getting the following output:

dockergen_1 | 2014/10/19 23:08:50 Contents of /etc/nginx/sites-enabled/default did not change. Skipping notification '/app/reload-nginx-container.sh'
dockergen_1 | 2014/10/19 23:08:51 Received event start for container 769a3f1d7134
dockergen_1 | 2014/10/19 23:08:51 Generated '/etc/nginx/sites-enabled/default' from 4 containers
dockergen_1 | 2014/10/19 23:08:51 Running '/app/reload-nginx-container.sh'
dockergen_1 | 2014/10/19 23:08:51 error running notify command: /app/reload-nginx-container.sh, exit status 127
dockergen_1 | 2014/10/19 23:08:51 Reloading nginx, dumping env
dockergen_1 | HOSTNAME=59d20515656f
dockergen_1 | DOCKER_HOST=unix:///var/run/docker.sock
dockergen_1 | PROXY_NAME=proxy_1
dockergen_1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
dockergen_1 | PWD=/app
dockergen_1 | HOME=/root
dockergen_1 | SHLVL=2
dockergen_1 | _=/usr/bin/env
dockergen_1 | /app/reload-nginx-container.sh: line 17: docker: command not found
dockergen_1 | /app/reload-nginx-container.sh: line 18: docker: command not found
dockergen_1 | /app/reload-nginx-container.sh: line 19: docker: command not found

I am getting starting to understand this more, and I think part of the issue is just me using a Mac. The nginx-proxy.yml is sharing /var/run/docker.sock:/var/run/docker.sock and /usr/bin/docker:/usr/bin/docker volumes.
The first quick fix I apllied was changing the second volume to usr/bin/local/docker and when I run fig run dockergen docker info I do now get a response, but the shell command still shows me docker: command not found.

On other issue I can see is that the /var/run/docker.sock does not exist on my Mac, but no idea how to fix that.
Any ideas? Or should I try jwilder's nginx setup in the meantime?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions