docker system infoコマンド実行例
$ sudo docker system info
Client:
Context: default
Debug Mode: false
Server:
Containers: 0 ←コンテナの数
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 20.10.14 ←dockerのバージョン
Storage Driver: overlay2 ←ストレージドライバーの種類
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
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: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3df54a852345ae12XXXXXXXXXXXX
runc version:
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
cgroupns
Kernel Version: 5.15.0-40-generic
Operating System: Ubuntu Core 18
OSType: linux ←OSの種類
Architecture: x86_64 ←アーキテクチャ
CPUs: 4
Total Memory: 15.55GiB
Name: XXXXXXXX
ID: XXXXXXXX
Docker Root Dir: /var/snap/docker/common/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
docker system df (docker system df -v) コマンド実行例
$ sudo docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 1 1 231.3MB 0B (0%)
Containers 4 1 272B 11B (4%)
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
#詳細表示オプション-v付与
$ sudo docker system df -v
Images space usage:
REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS
centos latest 5d0da3dc9764 10 months ago 231.3MB 0B 231.3MB 4
Containers space usage:
CONTAINER ID IMAGE COMMAND LOCAL VOLUMES SIZE CREATED STATUS NAMES
11bbc82b2fca centos "/bin/ping localhost" 0 11B 25 hours ago Exited (137) 13 hours ago sleepy_beaver
1917c7f76a5f centos "/bin/bash" 0 261B 35 hours ago Up 29 seconds test2
35cb1215e744 centos "/bin/cal" 0 0B 35 hours ago Exited (0) 14 hours ago test1
99671ed077ff centos "/bin/bash" 0 0B 35 hours ago Exited (0) 13 hours ago sad_wescoff
Local Volumes space usage:
VOLUME NAME LINKS SIZE
Build cache usage: 0B
CACHE ID CACHE TYPE SIZE CREATED LAST USED USAGE SHARED