0
0
Dockerdevops~10 mins

Debugging network issues 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'
Als
Bcreate
Crm
Dinspect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'ls' will try to make a new network.
'rm' deletes a network, not lists 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'
Arm
Binspect
Cls
Dconnect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' deletes the network.
'ls' lists networks but doesn't show details.
3fill in blank
hard

Fix the error in the command to ping a container named 'webapp' from the 'client' container.

Docker
docker exec [1] client ping webapp
Drag options to blanks, or click blank then click option'
A-d
B-p
C-rm
D-it
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-d' runs in detached mode, not interactive.
'-rm' is not a valid docker exec option.
4fill in blank
hard

Fill both blanks to create a Docker network named 'test_net' with a specific driver.

Docker
docker network [1] test_net --driver [2]
Drag options to blanks, or click blank then click option'
Acreate
Brm
Cbridge
Doverlay
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' deletes networks, not creates.
Choosing 'overlay' is for multi-host networks, not local.
5fill in blank
hard

Fill all three blanks to disconnect a container named 'db' from a network named 'backend_net'.

Docker
docker network [1] [2] [3]
Drag options to blanks, or click blank then click option'
Adisconnect
Bdb
Cbackend_net
Dconnect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'connect' adds a container to a network, not removes.
Swapping container and network names causes errors.