Created
January 21, 2023 17:03
-
-
Save thalysonalexr/c3333a0e7e9333c4c45ae2918695381a to your computer and use it in GitHub Desktop.
Create network GW bridge for Swarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
docker network create \ | |
--subnet <same-pool-address-default-docker-subnets> \ | |
--opt com.docker.network.bridge.name=docker_gwbridge \ | |
--opt com.docker.network.bridge.enable_icc=false \ | |
--opt com.docker.network.bridge.enable_ip_masquerade=true \ | |
docker_gwbridge | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment