Posts

Showing posts from March, 2025

Docker Commands

Image
 Docker Commands 1. General Docker Commands docker --version Check the installed Docker version. docker info Display system-wide information about Docker. 2. Docker Image Commands docker build -t <image_name> . Build a Docker image from a Dockerfile in the current directory. docker pull <image_name> Download an image from Docker Hub or another registry. docker push <image_name> Push a local image to a Docker registry. docker images or docker image ls List all available images on your local machine. docker rmi <image_name> Remove an image from your local machine. docker tag <source_image> <target_image> Tag an image with a new name. docker inspect <image_name> Get detailed information about an image. 3. Docker Container Commands docker run <image_name> Create and start a container from an image. docker ps or docker container ls List all running containers. docker ps -a or docker contai...