Docker Commands Flashcards
What is tag in docker image ?
While pulling the docker image , version of image is tag
like **redis:4.0 ** is a tag
WhaT is the default tag ?
latest version is default tag
Where we know the tags of images ?
In docker hub we see the image tags
What is a command to run a docker
docker run dockerImage
How to view running containers
docker ps
How to view stoped containers
docker ps -a
How to stop docker
docker stop dockerName/dockerID
How to view downloaded images
docker images
How to delete stored images ?
docker rmi imageID/RepoName
How to download only docker image
docker pull imageName
How to run a docker in detached mode
docker -d dockerImage
How to attach a detached docker ?
docker attach dockerName/ID
How to check docker version ?
docker version
How to view docker network connections
docker network ls
What are tags in docker ?
Image versions are docker tags
How to download docker image by tag
Image name followed by : colon
docker pull redis:7.2.3-alpine3.18
or
docker pull redis:latest