- first install docker desktop app in your local windows 10 machine from google
- open that docker app // docker starting will be displayed in notification
after that docker is running
then open cmd
show docker install version
docker --version
pull docker image
docker pull IMAGE_NAME:tag
i.e
docker pull ubuntu:latest
list available docker images
docker image ls
to run a docker run image
docker run IMAGE_NAME
now list which container is mapped to your docker image and running one
docker ps
run the container of your image
docker exec -it CONTAINER_NAME /bin/bash
!! now you are in the bash mode of your container
committing the changes made in container
docker commit CONTAINER_NAME IMAGE_NAME:tag
after that you can stop container , your changes would be kept
docker stop CONTAINER_NAME
list all active containers
docker container ls
list all active images/containers history
docker image ls -a
docker container ls -a
Top comments (0)