Kevin Rave
Kevin Rave

Reputation: 14466

What is the difference between Docker Host and Container

I started learning about Docker. But I keep getting confused often, even though I read it in multiple places.

Docker Host and Docker Container.

Where does the Docker Host come in? Is this another word for Container or another layer where you can keep multiple containers together?

Sorry may be a basic question. I googled this, but no use.

Upvotes: 44

Views: 23750

Answers (5)

Sean McCarthy
Sean McCarthy

Reputation: 5588

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

Upvotes: 18

UserASR
UserASR

Reputation: 2215

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.

Upvotes: 4

paul stanton
paul stanton

Reputation: 964

The Host is the underlying OS and it's support for app isolation (ie., process and user isolation via "containers." Docker provides an API that defines a method of application packaging and methods for working for the containers.

Host = container implementation Docker = app packaging and container management

Upvotes: 3

Gomex
Gomex

Reputation: 488

Docker Host is the machine that Docker Engine is installed.

Upvotes: 27

Peter Lyons
Peter Lyons

Reputation: 146174

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.

Upvotes: 35

Related Questions