Skip to main content
Skip table of contents

Docker swarm commands

This article gives some commonly used docker swarm commands that can be used with Smart ID Digital Access component.

'da' refers to the stack name in the below commands.

To deploy da service stack:

CODE
 sudo docker stack deploy --compose-file docker-compose.yml -c network.yml -c versiontag.yml da 

To remove service stack:

CODE
sudo docker stack rm da

To list deployed stack:

CODE
sudo docker stack ls

To list downloaded services:

CODE
sudo docker images 
OR
sudo docker image ls

To list running docker containers:

CODE
sudo docker ps

To list nodes connected in swarm:

CODE
sudo docker node ls

To list services and the number of running replicas:

CODE
docker service ls

To check the reason why the service cannot start:

CODE
docker service ps --no-trunc <da_service>

To inspect a specific node:

CODE
sudo docker node inspect <node name>

To delete the service, this would stop all deployed containers:

CODE
docker service rm $service_name

Related information

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.