Docker学习__docker命令[docker version 和 docker info]


其他知识点,会在后续学习过程中再做完善。

Docker安装成功后,查看安装的Docker的相关信息。

Docker命令:

  • docker version:显示 Docker 版本信息。
[root@Docker docker]# docker version
Client: Docker Engine - Community    #[docker客户端的相关信息]
 Version:           19.03.5      #[客户端的版本]
 API version:       1.40        #[API的版本]
 Go version:        go1.12.12     #[GO语言的版本]
 Git commit:        633a0ea
 Built:             Wed Nov 13 07:25:41 2019
 OS/Arch:           linux/amd64    #[使用的平台]
 Experimental:      false

Server: Docker Engine - Community   #[docker服务器端的相关信息]
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.12
  Git commit:       633a0ea
  Built:            Wed Nov 13 07:24:18 2019
  OS/Arch:          linux/amd64
  Experimental:     false
  • docker info:显示Docker详细信息
[root@Docker docker]# docker info
Client:
 Debug Mode: false

Server:
 Containers: 0    #[容器数量]
  Running: 0    #[运行状态的容器数量]
  Paused: 0    #[暂停状态的容器数量]
  Stopped: 0    #[停止状态的容器数量]
 Images: 0    #[镜像数量]
 Server Version: 19.03.5    #[服务器端docker的版本]
 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 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-693.el7.x86_64    #[内核级版本]
 Operating System: CentOS Linux 7 (Core)    #[操作系统]
 OSType: linux    #[操作系统类型]
 Architecture: x86_64    #[架构]
 CPUs: 1    #[CPU数量]
 Total Memory: 976.3MiB    #[总内存大小]
 Name: Docker    #[主机名]
 ID: R3BL:5WK2:2ITC:743N:CPYI:VOKV:4VWY:7HFF:7KJV:2BJJ:GPPJ:JOEZ
 Docker Root Dir: /var/lib/docker    #[docker的Root文件路径]
 Debug Mode: false
 Registry: https://index.docker.io/v1/    #[仓库地址]
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:    #[注册表镜像]:如果配置了镜像加速器这里才会有信息。
  https://b4if3g8i.mirror.aliyuncs.com/    #[此为阿里云的加速器地址]
 Live Restore Enabled: false

猜你喜欢

转载自www.cnblogs.com/lizhi199322/p/12302032.html
今日推荐