Get the App
SLTechnology News&Howtos  ›  Servers  › 

Basic deployment of Docker and basic Control commands (Theory)

Shulou Source: shulou.com Published: 2022-06-02 15:44:43 10月03日 Update

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

Tags: Container image warehouse label name command file name run status environment common use application control between information instance time pattern system Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Microsoft OPPO Reno MySQL Linux