Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Basic deployment of Docker and basic Control commands (Theory)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report