Skip to content

Instantly share code, notes, and snippets.

@thalysonalexr
Created January 21, 2023 16:31
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/46df33558a96a7fe744960e1e0ff4f72 to your computer and use it in GitHub Desktop.
Save thalysonalexr/46df33558a96a7fe744960e1e0ff4f72 to your computer and use it in GitHub Desktop.
Init docker swarm with default IP address
#!/bin/sh
docker swarm init --advertise-addr 172.16.0.24 --default-addr-pool 172.61.1.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment