bisvarup mukherjee

The docker handbook for frontend devs

Pulling an image from dockerhub

docker pull ubuntu


Login to your own dockerhub account (optional)
docker login --username bisvarup


List your docker contains, which you have installed
docker image ls
docker images


Create an instance of the image, and run it in detached (-d), -i (interactive) and attach a psudo tty (-t)
docker run -it -d ubuntu


List the image containers
docker ps -a


Log into an container
docker exec -it 45ceac9df55c bash


Stop an instance
docker stop 45ceac9df55c


Delete an container
docker rm 45ceac9df55c


Delete a container
docker rmi ubuntu


Create a new image
docker commit container_id username/image_name


Push a new image to dockerhub
docker push bisvarup/image_name
#frontend #docker
Copyright © 2020 Bisvarup Mukherjee
counter freeViews