码迷,mamicode.com
首页 > 其他好文 > 详细

安装docker

时间:2018-10-25 23:16:02      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:network   try   str   arm   enable   查看   tin   dom   enabled   

1.安装依赖包

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

2.添加Docker软件包源

yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo

3.更新yum包索引

yum makecache fast

4.安装Docker CE

yum install docker-ce

5.启动

systemctl start docker

6.卸载

yum remove docker-ce
rm -rf /var/lib/docker*

6.查看相关信息

[root@localhost ~]# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 18.06.1-ce
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 logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-862.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 470.6MiB
Name: localhost.localdomain
ID: PW54:2XWL:25WX:S3VY:5APC:DPDE:6OLJ:IW2N:OC36:GIM6:XOZB:2J5D
`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

安装docker

标签:network   try   str   arm   enable   查看   tin   dom   enabled   

原文地址:http://blog.51cto.com/popli3/2309026

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!