Docker Images

Docker is a platform for developing, shipping and running 
applications inside a containers. Docker images are those
templates which can be used by you to run applications.

You can use below link for installing docker on ubuntu system.
Now we will go through docker commands. This page will show you 
about docker image commands.

List all available images on host system.
# docker images
or
# docker images ls
Pull a image from docker hub or other registry.
# docker pull image_name:tag

example:

# docker pull ngnix:latest
You can also search images.
# docker search mysql
If you don't want any image you can remove it.
# docker image rm <image-name>

# docker rmi ngnix:latest
If you want to check history of docker image.
# docker histiry b234478bc90c(image id)
We have two types of images.

Without Service or Raw Image: Raw images are basically base
images that servers as foundation for building other docker
images. Base images have only core operating system and minimal
software installed to run a application. It can ubuntu,
Redhat, CentOS etc.


With Service or Serice Image: This is basically raw images
installed with some functionality, application etc. You can
use them for performing required tasks.

Leave a Reply

Your email address will not be published. Required fields are marked *