Basic deployment of Docker and basic Control commands (Theory)
Overview of Docker basic deployment and basic control command Docker
Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable image, publish them to any popular Linux or Windows machine, and virtualize them. Containers are completely sandboxed and will not have any interface with each other, and the two are completely independent.
Comparison with virtual machine characteristics container virtual machine startup speed minute hard disk generally MB generally GB performance close to native weaker than native system support click support thousands of containers generally dozens of isolation completely shielded underlying relatively independent Docker core concepts
Image: similar to virtual machine image
Container (Container): similar to linux system environment, running and isolating applications. When the container starts from the image, docker creates a writeable layer at the top of the image, and the image itself is read-only and remains the same.
Repository: each warehouse stores a certain type of image.
Container, warehouse, image operation diagram:
Docker basic deployment 1, installation environment package [root@localhost ~] # yum install-y yum-utils device-mapper-persistent-data lvm2 2, use Ali's docker repository [root@localhost ~] # yum-config-manager-add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo// to install docker-ce [root@localhost ~] # yum install-y docker-ce 3, image download acceleration [root@localhost docker] # tee / etc/docker/daemon.json