Working with Docker images

Working with Docker images 1

Downloading an image from docker hub

 docker pull <image name> 

example

docker pull ubuntu

View a list of downloaded images

docker images

Open shell in container

docker run -it (<repository>:<tag>)

example

docker run -it ubuntu:latest /bin/bash

Exit from containers

exit

Remove a downloaded image

NOTE: Before removing you must remove the particular container

docker rmi  <IMAGE ID>

Default image
Vishal Devxo
Vishal Devxo is a DevOps engineer and a Backend developer, he spends all his time for creating good tutorials with better visuals and blogging, developed some projects based on Python-Django, some hacking modules and scripts in python