Can some one explain the difference between the two, which contains the docker runtime?
3 Answers
Docker Engine is the core product of Docker, including its daemon (dockerd) as well as its CLI (docker). Docker Daemon is simply a part of Docker Engine.
Quoting the Docker engine overview page:
Docker Engine is an open source containerization technology for building and containerizing your applications. Docker Engine acts as a client-server application with:
- A server with a long-running daemon process dockerd.
- APIs which specify interfaces that programs can use to talk to and instruct the Docker daemon.
- A command line interface (CLI) client docker.
They are the same, and neither.
The Docker daemon and engine refer to the same dockerd
process. Docker itself doesn't contain the container runtime in the dockerd
binary anymore. That was moved out to the runc project long ago, and you can swap in other runtimes for your own use cases.
Between that runtime and the docker daemon is containerd which is used to manage the images, containers, and filesystem layers. So you can think of the docker daemon as being broken apart into various microservices.