Docker CE — Inspect
Notes taken from A Cloud Guru course titled “Docker Certified Associate (DCA)” by Will Boyd.
Docker CE — Inspect
Notes taken from A Cloud Guru course titled “Docker Certified Associate (DCA)” by Will Boyd.
Docker Inspect
Allows to get information about Docker objects, e.g. containers, images, services, etc.
Few Inspect Command Examples
# Run a container and inspect it.
docker run -d --name nginx nginx
docker inspect <CONTAINER_ID>
# List the containers and images to get their IDs, then inspect an image.
docker container ls
docker image ls
docker inspect <IMAGE_ID>
# Create and inspect a service.
docker service create --name nginx-svc nginx
docker service ls
docker inspect <SERVICE_ID>
docker inspect nginx-svc
# Use the type-specific commands to inspect objects.
docker container inspect nginx
docker service inspect nginx-svc
# Use the --format flag to retrieve a subset of the data in a specific format.
docker service inspect --format='{{.ID}}' nginx-svc
Further Reads:
메타데이터
- post_id
- 844ddb6f70ec
- slug
- docker-ce-inspect-844ddb6f70ec
- url
- https://medium.com/@rubaiyat.rahim/docker-ce-inspect-844ddb6f70ec
- canonical_url
- https://medium.com/@rubaiyat.rahim/docker-ce-inspect-844ddb6f70ec
- author_url
- https://medium.com/@rubaiyat.rahim
- status
- ok
- fetched_at
- 2026-08-04 23:39:55