Hands-on task
This task is step 5 of the course “Docker: everyday work”
A container's ID card: docker inspect
An old container legacy runs on the server, and nobody remembers anything about it. Find out:
- its IP address on Docker's internal network — write it to
/root/ip.txt; - which server directory is attached to the container as
/data— write the full path to/root/data-path.txt.
Each file holds only the value.
What you'll practise:
- docker inspect
- --format
- Go templates