RedHat 7.4安装Docker


操作系统版本:
  1. Red Hat Enterprise Linux Server release 7.4 (Maipo)
添加yum源:
  1. vi /etc/yum.repos.d/docker.repo

[dockerrepo]
name=Docker Repository
baseurl=http://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=0

安装:
  1. yum install docker-engine -y
启动Docker服务:
  1. systemctl start docker
检查是否安装成功:
  1. [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容器总体状况
  1. [root@ip-172-31-29-22 yum.repos.d]# docker info
  2. Containers: 0
  3.  Running: 0
  4.  Paused: 0
  5.  Stopped: 0
  6. Images: 0
  7. Server Version: 17.05.0-ce
  8. Storage Driver: overlay
  9.  Backing Filesystem: xfs
  10.  Supports d_type: true
  11. Logging Driver: json-file
  12. Cgroup Driver: cgroupfs
  13. Plugins:
  14.  Volume: local
  15.  Network: bridge host macvlan null overlay
  16. Swarm: inactive
  17. Runtimes: runc
  18. Default Runtime: runc
  19. Init Binary: docker-init
  20. containerd version: 9048e5e50717ea4497b757314bad98ea3763c145
  21. runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228
  22. init version: 949e6fa
  23. Security Options:
  24.  seccomp
  25.   Profile: default
  26. Kernel Version: 3.10.0-693.11.6.el7.x86_64
  27. Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo)
  28. OSType: linux
  29. Architecture: x86_64
  30. CPUs: 1
  31. Total Memory: 990.8MiB
  32. Name: ip-172-31-29-22.ap-northeast-1.compute.internal
  33. ID: 6C4S:W4VA:MSIK:TGZC:BHYU:3AHR:FJX7:44SO:467J:4ZNL:7T67:3GYK
  34. Docker Root Dir: /var/lib/docker
  35. Debug Mode (client): false
  36. Debug Mode (server): false
  37. Registry: https://index.docker.io/v1/
  38. Experimental: false
  39. Insecure Registries:
  40.  127.0.0.0/8
  41. Live Restore Enabled: false
设置开机自动启动:
        1.默认是非开机自启的
[root@ip-172-31-29-22 yum.repos.d]# systemctl is-enabled docker
disabled
        2.设置开机启动
systemctl enable docker





















来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20893244/viewspace-2149945/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20893244/viewspace-2149945/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值