Skip to content

Instantly share code, notes, and snippets.

@thalysonalexr
Created January 21, 2023 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thalysonalexr/c3333a0e7e9333c4c45ae2918695381a to your computer and use it in GitHub Desktop.
Save thalysonalexr/c3333a0e7e9333c4c45ae2918695381a to your computer and use it in GitHub Desktop.
Create network GW bridge for Swarm
#!/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