Get the App
SLTechnology News&Howtos  ›  Servers  › 

Installation and configuration of docker

Shulou Source: shulou.com Published: 2022-06-03 05:44:46 11月09日 Update

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

Tags: Image warehouse container version environment method concept operating system code core system application design operation isolation excellent maximum similar three upper layer Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Tech Info macOS Docker Redmi