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

Installation and configuration of docker

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Core concepts of docker installation

Docker has three core concepts

Mirror (Image)

Mirroring is the basis for creating Docker containers. Similar to virtual machine image, it can be understood as a read-only template, for example, an image can contain a basic operating system environment, which only contains Apache, which can be called Apache image. Container (Container)

Similar to a lightweight sandbox, docker uses containers to run and isolate applications. Containers run instances of applications created from images (which can be started, started, stopped, deleted), and these containers are isolated and invisible to each other.

Note: the image itself is read-only. When the container starts from the image, it will create a writable layer at the top of the image. Warehouse (Repository)

Similar to a code repository, it is a centralized place for docker to store image files. Docker repositories can be divided into public warehouses (Public) and private warehouses (Private). At present, the largest open library is the official Docker Hub.

Note: the design concept of docker using warehouse management image is similar to that of Git code repository. In fact, docker design draws lessons from many excellent ideas of Git to install Docker environment check in Centos environment.

Docker currently supports Centos7 and later versions, 64-bit operating systems, and kernel version 3.10 or later.

[root@docker01 ~] # uname-aLinux docker01 3.10.0-693.el7.x86_64 # 1 SMP Tue Aug 22 21:09:27 UTC 2017 x86 "64 GNU/Linux [root@docker01] # cat / etc/redhat-release CentOS Linux release 7.4.1708 (Core) add yum source for docker stable [root@docker01 ~] # yum-config-manager-- add-repo https://download.docker.com/linux/centos/docker-ce.repo[ Root@docker01 ~] # yum-y install docker-ce [root@docker01 ~] # systemctl start docker is installed by script

Method 1

[root@docker01 ~] # wget-qO- https://get.docker.com|sh

Method 2

[root@docker01 ~] # curl-fsSL https://get.docker.com|sh

Method 3 (test the latest version, unstable version, do not use in production environment)

[root@docker01 ~] # curl-fsSL https://test.docker.com|sh

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