What is the difference between Docker Host and Container

Docker Host is the machine that Docker Engine is installed.


Docker host is the machine where you installed the docker engine. the docker container can be compared with a simple process running on that same docker host.


The docker host is the base traditional OS server where the OS and processes are running in normal (non-container) mode. So the OS and processes you start by actually powering on and booting a server (or VM) are the docker host. The processes that start within containers via docker commands are your containers.

To make an analogy: the docker host is the playground, the docker containers are the kids playing around in there.


Here's a picture, which I find easier to understand than words. I found it here.

The Host is the machine managing the containers and images, where you actually installed Docker.

enter image description here