Ravindra BagaleCourses & study guides

Chapter 6: Docker Images and Containers

6.9 Useful inspect habits (still beginner)

docker images
docker ps -a
docker inspect badge-api
docker rm -f badge-api # force remove if needed after stop issues
docker rmi badge-api-hello:0.1

Tagging. Prefer badge-api-hello:0.1 over relying only on latest for anything you might ship later. Chapter 3 tags and later CI chapters continue this idea.

App bind address. If curl through -p fails but logs show the app started, check the app listens on 0.0.0.0, not only 127.0.0.1 inside the container.

Next chapter

Volumes, networks and Compose (API + database together) come in the next Docker chapter. Master one container + published port first.