Difference: 1. Docker as a project only focuses on runtime containers, while openshift includes both runtime containers and RESTAPI coordination web interface; 2. Docker’s default file system is AUFS and Overlay, while openShift’s The default file system is Etcd.
The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.
What is the difference between openshift and docker
The main difference is:
Docker as a project only focuses on runtime Containers, and OpenShift (as a system) includes both runtime containers and REST APIs, orchestration and web interfaces to deploy and manage individual containers.
Comparing only runtime containers, both OpenShift and Docker use the kernel isolation feature to separate tenant processes.
For Docker primarily through LXC and OpenShift primarily through SELinux and Multi-Class Security (MCS). Both use cgroups to limit the tenant's CPU, memory and IO.
Upstream OpenShift is looking for LXC to reduce long-term work.
Docker uses AUFS for advanced disk and file-on-write copy-on-write sharing, OpenShift is neither required nor compatible with such a system.
Inside the container, OpenShift models functional units (web servers, databases) through "boxes", which are a set of shell script hooks that are called when the system is called. The API is described here. Cartridges are roughly similar to docker images.
Openshift also describes the API through which an agent (coordinator) communicates with a node (server hosting multiple tenant containers) to call endpoints in that container.
Recommended learning: "docker video tutorial"
The above is the detailed content of What is the difference between openshift and docker. For more information, please follow other related articles on the PHP Chinese website!