0
0
Dockerdevops~10 mins

Swarm vs Kubernetes decision in Docker - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize a Docker Swarm cluster on the manager node.

Docker
docker swarm [1]
Drag options to blanks, or click blank then click option'
Alaunch
Binit
Ccreate
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'init' which does not initialize the swarm.
Using 'create' or 'launch' which are not valid swarm commands.
2fill in blank
medium

Complete the command to join a worker node to an existing Swarm cluster using the token.

Docker
docker swarm join --token [1] manager-node-ip:2377
Drag options to blanks, or click blank then click option'
Aworker-token
Binit-token
Cjoin-token
Dmanager-token
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'manager-token' which is for manager nodes only.
Using 'init-token' which is not a valid token name.
3fill in blank
hard

Fix the error in the Kubernetes deployment command to apply a configuration file.

Docker
kubectl [1] -f deployment.yaml
Drag options to blanks, or click blank then click option'
Acreate
Brun
Capply
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' which fails if resource exists.
Using 'run' or 'start' which are not valid for applying configs.
4fill in blank
hard

Fill both blanks to list all running pods in the default namespace with detailed info.

Docker
kubectl [1] pods [2]
Drag options to blanks, or click blank then click option'
Aget
Bdescribe
C--all-namespaces
D-o wide
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'describe' which shows detailed info for one pod, not a list.
Using '--all-namespaces' which lists pods in all namespaces, not default.
5fill in blank
hard

Fill all three blanks to create a Docker service with 3 replicas running nginx.

Docker
docker service [1] --replicas [2] [3]
Drag options to blanks, or click blank then click option'
Acreate
B3
Cnginx
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' instead of 'create' which is not valid for services.
Using wrong number of replicas or missing image name.