0
0
Dockerdevops~10 mins

Network inspection and debugging in Docker - Interactive Code Practice

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

Complete the command to list all Docker networks.

Docker
docker network [1]
Drag options to blanks, or click blank then click option'
Arm
Binspect
Cls
Dcreate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'ls' will try to make a new network.
Using 'rm' will delete a network, not list it.
2fill in blank
medium

Complete the command to inspect details of a Docker network named 'my_net'.

Docker
docker network [1] my_net
Drag options to blanks, or click blank then click option'
Acreate
Bls
Crm
Dinspect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' deletes the network.
Using 'ls' lists networks but no details.
3fill in blank
hard

Fix the error in the command to check running containers' network settings.

Docker
docker container [1]
Drag options to blanks, or click blank then click option'
Ainspect
Bstop
Cls
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' will stop the container.
Using 'ls' lists containers but no details.
4fill in blank
hard

Fill both blanks to create a network and connect a container named 'webapp' to it.

Docker
docker network [1] my_net && docker network [2] my_net webapp
Drag options to blanks, or click blank then click option'
Acreate
Brm
Cconnect
Ddisconnect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' deletes the network.
Using 'disconnect' removes the container from the network.
5fill in blank
hard

Fill all three blanks to list containers, find the container ID of 'db', and inspect its network info.

Docker
docker ps -q --filter name=[1] | xargs docker container [2] [3]
Drag options to blanks, or click blank then click option'
Awebapp
Binspect
Cdb
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' will stop the container.
Using wrong container name filters no results.