Docker Day 3 - Basic Docker Commands
Here’s what I practiced and learned:
docker --version– To check the installed Docker versiondocker search <image-name>– To search for images on Docker Hubdocker pull <image-name>– To download images from Docker Hubdocker images– To list all locally stored imagesdocker ps– To list running containersdocker ps -a– To list all containers (running + stopped)docker run <image>– To create and start a container from an imagedocker stop <container-id>/docker start <container-id>– To manage container lifecycledocker rm <container-id>/docker rmi <image-id>– To remove containers and imagesdocker exec -it <container-id> bash– To interact with a running containerdocker attach <container-id>– To attach to a running container’s terminaldocker build -t <image-name> .– To build an image from a Dockerfile
Using these commands, I now have a better grasp of how to search, pull, run, manage, and clean up Docker containers and images—skills that form the backbone of working with containerized applications.

