Tech-Chat Github Karshunibremen
# enable swarm feature in docker
docker swarm init
Karsh
# enable swarm feature in docker
docker swarm init
# docker service create
docker service create <image-name> <option>
# example
docker service create alpine ping 8.8.8.8
# docker manager join token
docker swarm join-manager manager
# remove container from docker
docker container rm <first 3 characters of container id>
# docker pull an image
docker pull <image-name>:<version>
# get docker statistics on resources
docker container stats
# docker node update role
docker node update --role <manager/worker> <node-name>
#Example
docker node update --role manager node2
# get docker version
docker version
# run bash shell in a docker container
docker container run -it --name <your_choice> <image_name> bash
# docker logout
docker logout