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

CentOS 7.5.1804 install and configure docker

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

Share

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

1. CentOS 7.5.1804 system minimized installation, omitted here

[root@docker01] # uname-a

Linux docker01 3.10.0-862.el7.x86_64 # 1 SMP Fri Apr 20 16:44:24 UTC 2018 x86'64 GNU/Linux

[root@docker01 ~] # cat / etc/redhat-release

CentOS Linux release 7.5.1804 (Core)

[root@docker01 ~] #

2. Modify the default system software package installation source to Aliyun Image Warehouse

 backs up the default source configuration file

Mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backup

 downloads the new CentOS-Base.repo to / etc/yum.repos.d

Curl-o / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3. Update the system software package

[root@docker01 ~] # yum update-y

4. Install docker-ce

 Step 1: install some necessary system tools

Yum install-y yum-utils device-mapper-persistent-data lvm2

 Step 2: add software source information

Yum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

 Step 3: update and install Docker-CE

Yum makecache fast

Yum-y install docker-ce

 Step 4: enable the Docker service

Systemctl restart docker.service

5. Check

[root@docker01 ~] # docker version

Client:

Version: 18.09.0

API version: 1.39

Go version: go1.10.4

Git commit: 4d60db4

Built: Wed Nov 7 00:48:22 2018

OS/Arch: linux/amd64

Experimental: false

Server: Docker Engine-Community

Engine:

Version: 18.09.0

API version: 1.39 (minimum version 1.12)

Go version: go1.10.4

Git commit: 4d60db4

Built: Wed Nov 7 00:19:08 2018

OS/Arch: linux/amd64

Experimental: false

[root@docker01 ~] # docker info

Containers: 0

Running: 0

Paused: 0

Stopped: 0

Images: 0

Server Version: 18.09.0

Storage Driver: overlay2

Backing Filesystem: xfs

Supports d_type: true

Native Overlay Diff: true

Logging Driver: json-file

Cgroup Driver: cgroupfs

Plugins:

Volume: local

Network: bridge host macvlan null overlay

Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog

Swarm: inactive

Runtimes: runc

Default Runtime: runc

Init Binary: docker-init

Containerd version: c4446665cb9c30056f4998ed953e6d4ff22c7c39

Runc version: 4fc53a81fb7c994640722ac585fa9ca548971871

Init version: fec3683

Security Options:

Seccomp

Profile: default

Kernel Version: 3.10.0-862.14.4.el7.x86_64

Operating System: CentOS Linux 7 (Core)

OSType: linux

Architecture: x86_64

CPUs: 2

Total Memory: 1.936GiB

Name: docker01

ID: J4S2:R5XK:AVDU:U3DO:XRPU:NXV5:WIHR:INN2:KFFN:N7NJ:HSNN:RGRR

Docker Root Dir: / var/lib/docker

Debug Mode (client): false

Debug Mode (server): false

Registry: https://index.docker.io/v1/

Labels:

Experimental: false

Insecure Registries:

127.0.0.0/8

Live Restore Enabled: false

Product License: Community Engine

6. Finish.

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