“Tech-Chat Github Karshunibremen” Code-Antworten

Tech-Chat Github Karshunibremen

# enable swarm feature in docker
docker swarm init
Karsh

Tech-Chat Github Karshunibremen

# docker service create
docker service create <image-name> <option>

# example
docker service create alpine ping 8.8.8.8
Karsh

Tech-Chat Github Karshunibremen

# docker manager join token
docker swarm join-manager manager
Karsh

Tech-Chat Github Karshunibremen

# remove container from docker
docker container rm <first 3 characters of container id>
Karsh

Tech-Chat Github Karshunibremen

# docker pull an image
docker pull <image-name>:<version>
Karsh

Tech-Chat Github Karshunibremen

# get docker statistics on resources
docker container stats 
Karsh

Tech-Chat Github Karshunibremen

# docker node update role 
docker node update --role <manager/worker> <node-name>

#Example
docker node update --role manager node2
Karsh

Tech-Chat Github Karshunibremen

# get docker version
docker version
Karsh

Tech-Chat Github Karshunibremen

# run bash shell in a docker container
docker container run -it --name <your_choice> <image_name> bash
Karsh

Tech-Chat Github Karshunibremen

# docker logout
docker logout
Karsh

Ähnliche Antworten wie “Tech-Chat Github Karshunibremen”

Fragen ähnlich wie “Tech-Chat Github Karshunibremen”

Weitere verwandte Antworten zu “Tech-Chat Github Karshunibremen” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen