Docker Community Forums

Share and learn in the Docker community.

Getting started with swarm

Morning all

I’m following the docs here and running into a problem I can’t work out how to fix.

When I get to the step about running the nginx container, with the following code

docker run -ti -d
-p 80:80
–label interlock.ext.name=nginx
–link=interlock:interlock
-v nginx:/etc/conf
–name nginx
nginx nginx -g “daemon off;” -c /etc/conf/nginx.conf

The nginx container never starts with the following error coming out of the logs

$ docker logs nginx
2016/11/29 10:32:12 [emerg] 1#1: open() “/etc/conf/nginx.conf” failed (2: No such file or directory)
nginx: [emerg] open() “/etc/conf/nginx.conf” failed (2: No such file or directory)

I’m using docker-machine version 0.8.2, build e18a919, with Docker 1.12.3, using docker for mac.

Has anyone got any ideas about what’s going on here?

One other thing, the link to the suggested docker-compose.yml file is broken on the last page of the tutuorial :frowning: Is that supposed to be the case?

Broken link

https://docs.docker.com/swarm/docker-compose.yml