如何检测docker版本信息呢?
下文笔者讲述检测docker版本的方法分享,如下所示
实现思路: 使用docker --version命令即可查看docker的版本信息 或使用 docker info命令--也可输出版本信息例:打印当前docker版本信息的方法分享
[root@node0 ~]# docker --version Docker version 1.13.1, build 7d71120/1.13.1 [root@node0 ~]# docker info Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [root@node0 ~]# systemctl start docker [root@node0 ~]# docker info Containers: 1 Running: 0 Paused: 0 Stopped: 1 Images: 70 Server Version: 1.13.1 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Native Overlay Diff: true Logging Driver: journald Cgroup Driver: systemd Plugins: Volume: local Network: bridge host macvlan null overlay Swarm: inactive Runtimes: docker-runc runc Default Runtime: docker-runc Init Binary: /usr/libexec/docker/docker-init-current containerd version: (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1) runc version: 8891bca22c049cd2dcf13ba2438c0bac8d7f3343 (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f) init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574) Security Options: seccomp WARNING: You're not using the default seccomp profile Profile: /etc/docker/seccomp.json selinux Kernel Version: 3.10.0-1160.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86_64 Number of Docker Hooks: 3 CPUs: 1 Total Memory: 3.682 GiB Name: node0 ID: JFOA:O2RU:OERL:BPXE:3F2M:Y2DI:5SH5:ZVVQ:NT6X:GCO5:TEOZ:KN7Z Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled Experimental: false Insecure Registries: 127.0.0.0/8 Registry Mirrors: https://*******.mirror.aliyuncs.com Live Restore Enabled: false Registries: docker.io (secure) [root@node0 ~]# ^C [root@node0 ~]#
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。