CnetOS7.5下安装Docker
2021-04-12 04:29
标签:ext uri rom live overlay pos yum源 emc logging yum update [root@VM_0_7_centos ~]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo ..... Installed: Dependency Installed: Complete! [root@VM_0_7_centos ~]# docker -v [root@VM_0_7_centos ~]# docker info Server: WARNING: bridge-nf-call-iptables is disabled systemctl start docker systemctl start docker systemctl start docker CnetOS7.5下安装Docker 标签:ext uri rom live overlay pos yum源 emc logging 原文地址:https://www.cnblogs.com/bob-zb/p/12401407.html一. 安装Docker
1.更新yum
2.设置yum源为阿里云
Loaded plugins: fastestmirror, langpacks
adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo3. 安装docker
[root@VM_0_7_centos ~]# yum install docker-ce
docker-ce.x86_64 3:19.03.6-3.el7
audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7 container-selinux.noarch 2:2.107-3.el7 containerd.io.x86_64 0:1.2.10-3.2.el7 docker-ce-cli.x86_64 1:19.03.6-3.el7
libcgroup.x86_64 0:0.41-21.el7 libsemanage-python.x86_64 0:2.5-14.el7 policycoreutils-python.x86_64 0:2.5-33.el7 python-IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.8-4.el7 二.启动Docker
2.1 先查看Docker版本信息
Docker version 19.03.6, build 369ce74a3c2.2 查看Docker信息
Client:
Debug Mode: false
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 19.03.6
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan 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: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-1062.9.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.795GiB
Name: VM_0_7_centos
ID: BM2S:3HCF:232N:5R26:AEQ6:L7FW:AHZ3:5QDE:CIT7:QB7K:4MF2:AZLX
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: bridge-nf-call-ip6tables is disabled2.3 启动
2.4 停止
2.5 重启