I can’t even start a swarm service with ports mapped when under LXD (this is LXD 3.0.0 and Docker 18.03.1-ce under Ubuntu 18.04)
Normal docker containers are fine, on the LXD container
docker run -p 80:80 nginx
Creates a Docker container that I can successfully connect to from the LXD container with "curl localhost"
Starting a service without any ports mapped
docker service create --detach=false nginx
Runs fine - I can (from inside the Docker container) successfully run “curl localhost” or "curl " from the LXD container
But if I try to map a port, such as
docker service create --detach=false -p 80:80 nginx
It doesn’t start and just sits there with the following message
1/1: container ingress-sbox is already present in sandbox ingress_sbox
The suggested
nsenter --net=/run/docker/netns/ingress_sbox sysctl -w net.ipv4.ip_forward=1
doesn’t seem to make any difference.
Any thoughts?