centos8安装docker教程(centos7如何安装docker)
centos8安装docker教程(centos7如何安装docker)[root@cloudreve ~]# docker version Client: Docker Engine - Community Version: 20.10.12 API version: 1.41 Go version: go1.16.12 Git commit: e91ed57 Built: Mon Dec 13 11:45:41 2021 OS/Arch: linux/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.12 API version:
如何查看linux系统是否安装docker
可以通过执行【docker version】命令来查看,如果输出信息中包含Client选项和Server选项,那么就表示已经安装了docker如下图所示: 安装步骤以下安装步骤使用 Centos7.x 操作系统。
安装docker以下安装 docker 步骤适用于 Centos,其他系统安装请参考 Docker官方文档。
$ yum install -y yum-utils
$ yum-config-manager --add-repo
$ yum install docker-ce docker-ce-cli containerd.io
$ systemctl start docker
等待安装完成
[root@cloudreve ~]# docker version
Client: Docker Engine - Community
Version: 20.10.12
API version: 1.41
Go version: go1.16.12
Git commit: e91ed57
Built: Mon Dec 13 11:45:41 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.12
API version: 1.41 (minimum version 1.12)
Go version: go1.16.12
Git commit: 459d0df
Built: Mon Dec 13 11:44:05 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
over