0
0
Dockerdevops~10 mins

Inspecting container network settings 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'
Acreate
Brm
Cls
Dinspect
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 the network named 'bridge'.

Docker
docker network [1] bridge
Drag options to blanks, or click blank then click option'
Ainspect
Bcreate
Cls
Drm
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ls' lists networks but does not show details.
Using 'rm' deletes the network.
3fill in blank
hard

Fix the error in the command to inspect a container's network settings by container ID 'abc123'.

Docker
docker container [1] abc123
Drag options to blanks, or click blank then click option'
Als
Binspect
Crm
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ls' lists containers but no details.
Using 'rm' deletes the container.
4fill in blank
hard

Fill both blanks to complete the command that filters network inspect output to show only the container's IP address.

Docker
docker network inspect bridge --format '{{{{.Containers.[1].[2]'
Drag options to blanks, or click blank then click option'
Aabc123
BIPv4Address
CName
DID
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Name' or 'ID' instead of 'IPv4Address' will not show the IP address.
5fill in blank
hard

Fill all three blanks to complete the command that shows the network mode of a container named 'webapp'.

Docker
docker inspect --format='{{{{.[1].[2]' [3]
Drag options to blanks, or click blank then click option'
AHostConfig
BNetworkMode
Cwebapp
DConfig
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Config' instead of 'HostConfig' will not find NetworkMode.
Using wrong container name will cause error.