這篇文章主要講解了“RedHat7.4安裝Docker的步驟”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“RedHat7.4安裝Docker的步驟”吧!
揭西網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián),揭西網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為揭西千余家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站建設(shè)要多少錢,請(qǐng)找那個(gè)售后服務(wù)好的揭西做網(wǎng)站的公司定做!
操作系統(tǒng)版本:
Red Hat Enterprise Linux Server release 7.4 (Maipo)
添加yum源:
vi /etc/yum.repos.d/docker.repo
[dockerrepo]
name=Docker Repository
baseurl=http://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=0
安裝:
yum install docker-engine -y
啟動(dòng)Docker服務(wù):
systemctl start docker
檢查是否安裝成功:
[root@ip-172-31-29-22 yum.repos.d]# docker version
Client:
Version: 17.05.0-ce
API version: 1.29
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:06:25 2017
OS/Arch: linux/amd64
Server:
Version: 17.05.0-ce
API version: 1.29 (minimum version 1.12)
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:06:25 2017
OS/Arch: linux/amd64
Experimental: false
查看Docker容器總體狀況:
[root@ip-172-31-29-22 yum.repos.d]# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 17.05.0-ce
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9048e5e50717ea4497b757314bad98ea3763c145
runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-693.11.6.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 990.8MiB
Name: ip-172-31-29-22.ap-northeast-1.compute.internal
ID: 6C4S:W4VA:MSIK:TGZC:BHYU:3AHR:FJX7:44SO:467J:4ZNL:7T67:3GYK
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
設(shè)置開機(jī)自動(dòng)啟動(dòng):
1.默認(rèn)是非開機(jī)自啟的
[root@ip-172-31-29-22 yum.repos.d]# systemctl is-enabled docker
disabled
2.設(shè)置開機(jī)啟動(dòng)
systemctl enable docker
感謝各位的閱讀,以上就是“RedHat7.4安裝Docker的步驟”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對(duì)RedHat7.4安裝Docker的步驟這一問題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!