Working with Docker images

Working with Docker images

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>
Last updated on by vishal devxo