docker swarm attach network to container code example Example: create a swarm-scoped network $ docker network create -d overlay my-overlay