RedHat7.4安装Docker的步骤-创新互联
这篇文章主要讲解了“RedHat7.4安装Docker的步骤”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“RedHat7.4安装Docker的步骤”吧!
创新互联建站是一家朝气蓬勃的网站建设公司。公司专注于为企业提供信息化建设解决方案。从事网站开发,网站制作,网站设计,网站模板,微信公众号开发,软件开发,小程序设计,十年建站对成都小搅拌车等多个领域,拥有丰富的网站制作经验。
操作系统版本:
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
启动Docker服务:
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
设置开机自动启动:
1.默认是非开机自启的
[root@ip-172-31-29-22 yum.repos.d]# systemctl is-enabled docker
disabled
2.设置开机启动
systemctl enable docker
感谢各位的阅读,以上就是“RedHat7.4安装Docker的步骤”的内容了,经过本文的学习后,相信大家对RedHat7.4安装Docker的步骤这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!
分享文章:RedHat7.4安装Docker的步骤-创新互联
文章链接:http://azwzsj.com/article/eipcd.html