Managing Docker By Using Docker Swarm

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Managing Docker Swarm

The below Docker swarm how to is part of build highly available private docker registry.

To configure Docker Swarm you will need minimum 3 nodes, below I will use the names/ip’s listed in part 1.

To initialize the Docker Swarm cluster, just run the below on the first node coreos1.

Next, run the below, on the two other nodes (coreos2 and coreos3).
Replace the token with your Docker Swarm token.

For fail-over to work properly, in recent versions, run the below on node2 and node3, this is needed to allow the other two node become manger in case the first node fails.

Now, lets verify the cluster functionality.

Next, create a Docker Swarm network.

Next, create Docker Swarm service.

Now, verify the cluster network and service.

Docker helpful examples

A Docker Swarm busybox example.

Verify the ps busybox Docker Swarm.

Running the busybox as part of Docker Swarm.

Scale the busybox service as part of Docker Swarm.

Destroying the Docker Swarm cluster

Single node to leave the cluster.

Last node to leave the cluster – on coreos1.

You might also like
Other articles related to Docker Kubernetes / micro-services.

Leave a Reply

avatar
300
  Subscribe  
Notify of