检查docker是否运行_docker进入容器的命令

(1) 2024-07-06 21:12

Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说
检查docker是否运行_docker进入容器的命令,希望能够帮助你!!!。

检查docker版本的两个命令
来自:https://docs.docker.com/get-started/#test-docker-installation

[root@oradoc mnt]# docker --version Docker version 17.06.2-ol, build d02b7ab [root@oradoc mnt]# docker info Containers: 2 Running: 0 Paused: 0 Stopped: 2 Images: 17 Server Version: 17.06.2-ol ---->>>>此处 Storage Driver: devicemapper Pool Name: docker-251:0--pool Pool Blocksize: 65.54kB Base Device Size: 26.84GB Backing Filesystem: xfs Data file: /dev/loop0 Metadata file: /dev/loop1 Data Space Used: 13.53GB Data Space Total: 107.4GB Data Space Available: 66.21GB Metadata Space Used: 8.72MB Metadata Space Total: 2.147GB Metadata Space Available: 2.139GB Thin Pool Minimum Free Space: 10.74GB Udev Sync Supported: true Deferred Removal Enabled: false Deferred Deletion Enabled: false Deferred Deleted Device Count: 0 Data loop file: /var/lib/docker/devicemapper/devicemapper/data Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata Library Version: 1.02.135-RHEL7 (2016-09-28) 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: 6e23458c129b551d5c9871e5174f6b1b7f6d1170 runc version: ceaa507aa2727d7ae6f4790c76ec150bd2 init version: 949e6fa Security Options: seccomp Profile: default selinux Kernel Version: 4.1.12-61.1.18.el7uek.x86_64 Operating System: Oracle Linux Server 7.3 OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 7.544GiB Name: oradoc ID: 24KS:GMP4:RC:NBEX:4YDV:CMJJ:RGXB:TTYA:PHHV:QAHJ:KSV4:AECW Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device. [root@oradoc mnt]# 

 

 

 

今天的分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。

上一篇

已是最后文章

下一篇

已是最新文章

发表回复