Docker is a set of platform using virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. Difference from a virtual machine is, they can reach to resources from the host machine and they can be orchestrated in harmony.
After preparing the configuration, first it is built to construct an image, then the image is run to raise the container.
You can type docker to see all arguments and options:
Now, let's pull an image from Dockerhub and turn it into a container by running it:
We can remove containers and images after we are done with them:
Preparing an Image from scratch with Dockerfile
Let's create a Dockerfile and fill inside, then build it:
When editing files, we should modify in insert mode: