What is a container ?

Containers virtualize the operating system unlike VMs, Containers are portable with that it means it can do development and deployment .
In terms of docker its also runnable instance of image. we can have all dependency of an software into the image .

 containers virtualize the OS, splitting it into virtualized compartments to run container applications.