Hi All, this document deals with a user interface for docker swarm – swarmpit.
Swarmpit provides a simple and easy to use interface for your Docker Swarm cluster. You can manage your stacks, services, secrets, volumes, networks, etc. After linking your Docker Hub account or custom registry, private repositories can be easily deployed on Swarm. Best of all, you can share this management console securely with your whole team.

Here goes how to setup Swarmpit.

Installation

Step 1: Before installing swarmpit, make sure that you have an initialized docker swarm.
Step 2: Here is the command to initialize the docker swarm.

docker swarm init --advertise-addr 192.168.0.101

Output

Swarm initialized: current node (l0781lstkbbzeljc8960x2g8m) is now a manager.

To add a worker to this swarm, run the following command:

docker swarm join --token SWMTKN-1-167891jld25ytuw6lpmseo5ce5l4uwk9251bslzezqmnz98mwt-a66jkztkysqehzhvrawi167i8 192.168.0.101:2377

To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.

Step 3: Now you start the installation of swarmpit.

docker run -it --rm \
--name swarmpit-installer \
--volume /var/run/docker.sock:/var/run/docker.sock \
swarmpit/install:1.7

Output

                                       _ _   
 _____      ____ _ _ __ _ __ ___  _ __ (_) |_ 
/ __\ \ /\ / / _` | '__| '_ ` _ \| '_ \| | __|
\__ \\ V  V / (_| | |  | | | | | | |_) | | |_ 
|___/ \_/\_/ \__,_|_|  |_| |_| |_| .__/|_|\__|
                                 |_|          
Welcome to Swarmpit
Version: 1.7
Branch: 1.7

Preparing dependencies
latest: Pulling from byrnedo/alpine-curl
Digest: sha256:e8cf497b3005c2f66c8411f814f3818ecd683dfea45267ebfb4918088a26a18c
Status: Image is up to date for byrnedo/alpine-curl:latest
DONE.

Preparing installation
Cloning into 'swarmpit'...
remote: Enumerating objects: 71, done.
remote: Counting objects: 100% (71/71), done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 17093 (delta 21), reused 32 (delta 7), pack-reused 17022
Receiving objects: 100% (17093/17093), 4.40 MiB | 970.00 KiB/s, done.
Resolving deltas: 100% (10166/10166), done.
DONE.

Application setup
Enter stack name [swarmpit]: 
Enter application port [888]: 
Enter database volume driver [local]: 
Enter admin username [admin]: 
Enter admin password (min 8 characters long): admin1234
DONE.

Application deployment
Creating service swarmpit_db
Creating service swarmpit_agent
Creating service swarmpit_app
DONE.

Starting swarmpit..............DONE.
Initializing swarmpit...DONE.

Summary
Username: admin
Password: admin1234
Swarmpit is running on port: 888

Enjoy :)

Step 4: Now browse the following URL .
http://<IP address>:888
Now you will be able to see the below screen.

Now login with the credentials you have given while installation.

This the dashboard of swarmpit where you can manage the entire docker container clusters from here.

Stay tuned for more on swarmpit.

 

© 2019, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

0 Comments

Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.