Docker Community Forums

Share and learn in the Docker community.

Docker swarm can't publish port


(Syscea) #1

Hi,

I’m trying to set up a new VM with docker 1.12 swarm engine but I’m stuck with a strange issue.

this command works :
docker service create --name test "nginx";

but not this one:
docker service create --name proxy -p 80 "nginx";

When I’m using the publish port option the container can’t start and keeps crashing.
I have the following logs in my syslog

Oct 23 20:53:46 vps37383 kernel: bio: create slab <bio-3> at 3
Oct 23 20:53:46 vps37383 systemd[955]: message repeated 3 times: [ Failed to get udev device from devnum 8:1: Permission denied]
Oct 23 20:53:46 vps37383 systemd[955]: Failed to get udev device from devnum 250:1: Permission denied
Oct 23 20:53:46 vps37383 systemd[1]: dev-disk-by\x2duuid-cbaabed4\x2d20c5\x2d4f8e\x2da45a\x2d022bd3ed03d8.device: Dev dev-disk-by\x2duuid-cbaabed4\x2d20c5\x2d4f8e\x2da45a\x2d022bd3ed03d8.device appeared twice with different sysfs paths /sys/devices/virtual/block/loop0 and /sys/devices/virtual/block/dm-1
Oct 23 20:53:46 vps37383 kernel: EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
Oct 23 20:53:46 vps37383 systemd[955]: Failed to get udev device from devnum 8:1: Permission denied
Oct 23 20:53:46 vps37383 systemd[955]: Failed to get udev device from devnum 8:1: Permission denied
Oct 23 20:53:46 vps37383 dockerd[568]: time="2016-10-23T20:53:46.262989017+02:00" level=error msg="fatal task error" error= module=taskmanager task.id=82xsja3u9yz17iwfpf91ssm7x

I don’t have this issue on my local vm, but this one is a vps on OVH with ubuntu 16.04TLS (I don’t know if this could be related).

Any help would be very appreciated, I really couldn’t find what’s going on here.

Thanks a lot.