0
0
Dockerdevops~10 mins

Docker inspect for detailed info - Interactive Code Practice

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

Complete the command to see detailed info about a Docker container named 'webapp'.

Docker
docker [1] webapp
Drag options to blanks, or click blank then click option'
Aps
Brun
Cinspect
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker run' instead of 'docker inspect'.
Using 'docker ps' which lists containers but doesn't show details.
2fill in blank
medium

Complete the command to inspect a Docker image named 'nginx'.

Docker
docker [1] nginx
Drag options to blanks, or click blank then click option'
Ainspect
Bbuild
Cpull
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker pull' which downloads images but doesn't show details.
Using 'docker build' which creates images but doesn't inspect.
3fill in blank
hard

Fix the error in the command to inspect a container with ID 'abc123'.

Docker
docker inspect [1]
Drag options to blanks, or click blank then click option'
Aabc123
Babc-123
C--abc123
D-abc123
Attempts:
3 left
💡 Hint
Common Mistakes
Adding dashes before the container ID.
Using incomplete or modified container IDs.
4fill in blank
hard

Fill both blanks to inspect only the IP address of a container named 'db'.

Docker
docker inspect --format='{{.[1].[2]' db
Drag options to blanks, or click blank then click option'
AIPAddress
BNetworkSettings
CPorts
DGateway
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Ports' or 'Gateway' instead of 'NetworkSettings' or 'IPAddress'.
Mixing the order of keys.
5fill in blank
hard

Fill all three blanks to inspect the mount point source path of a container named 'app'.

Docker
docker inspect --format='{{range .Mounts}}{{if eq .[1] "[2]"}}{{.[3]{{end}}{{end}}' app
Drag options to blanks, or click blank then click option'
ADestination
B/data
CSource
DType
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Type' instead of 'Destination' or 'Source'.
Mixing the order of keys or values.