CheatSnip

Related

Join Swarm

docker

Join a swarm as a node

Create Service

docker

Create a new service

Start Services

docker

Create and start containers

docker/swarm-init

Initialize Swarm

Initialize a swarm

swarm
orchestration

Command

docker swarm init

Explanation

Initializes a Docker Swarm cluster on the current node, making it a manager.

Examples

Initialize swarm on manager node

docker swarm init --advertise-addr 192.168.1.100

More

Stop Services

docker

Stop and remove containers, networks

Run Container

docker

Create and start a new Docker container from an image, with options for interactive mode, port mapping, volume mounting, and environment configuration.

Start Container

docker

Start one or more stopped containers.

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers