Created
September 29, 2024 10:24
-
-
Save omernaci/66fff017fe77e7699bcdfd2653687dee to your computer and use it in GitHub Desktop.
Docker Images Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command | Description | |
---|---|---|
docker images | Lists all images stored locally. | |
docker pull <image-name> | Downloads the specified image from a registry. | |
docker build -t <image-name> . | Builds a Docker image from the Dockerfile in the current directory and tags it. | |
docker tag <image-id> <new-name> | Assigns a new tag to an existing Docker image. | |
docker rmi <image-id> | Removes the specified image from your local system. | |
docker history <image-name> | Displays the layers and history of a Docker image. | |
docker inspect <image-name> | Shows detailed information about the specified Docker image. | |
docker save -o <file-name>.tar <image-name> | Saves a Docker image to a .tar archive. | |
docker load -i <file-name>.tar | Loads a Docker image from a .tar archive. | |
docker push <image-name> | Uploads a Docker image to Docker Hub or a private registry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment