Since this seems to have been fixed a while ago, and that I cannot reproduce the issue, I will mark this bug as fixed. If I have missed any steps on reproducing this issue and you believe this is still a bug to be fixed in docker.io, please, reset the bug status to "new".
It seems this bug has been fixed in https:/ /github. com/moby/ libnetwork/ pull/1502, which is available since Docker 1.13. Therefore, this has been fixed since bionic.
I tried to reproduce the issue with
$ lxc launch ubuntu-daily:jammy -c security. nesting= true docker-j
$ lxc exec docker-j -- bash
# apt update && apt install -y docker.io
# docker swarm init
# docker network create -d overlay multihost-network-j
# docker service create --name testnginx --replicas 3 --network multihost-network-j nginx
# docker service ps testnginx
The results were the same for bionic as well.
Since this seems to have been fixed a while ago, and that I cannot reproduce the issue, I will mark this bug as fixed. If I have missed any steps on reproducing this issue and you believe this is still a bug to be fixed in docker.io, please, reset the bug status to "new".