Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker infoコマンド

Posted at

| はじめに

ここでは公式リファレンスを参考に説明しています。
ただ、バージョンや環境等により若干挙動が異なるかもしれませんが、その点についてはご容赦ください。
また、その他のdockerサブコマンドについてはこちらに記載していますので、もしよければ参考にしていただければと思います。

| 使い方

Dockerの環境情報を表示します。

使い方
使い方: docker info
デフォルト
$ docker info
Containers: 2
Images: 10
Server Version: 1.9.0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 14
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.12-boot2docker
Operating System: Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: 7MF2:JTD4:5MOS:LUDN:77GE:W7AG:YKIG:LGXI:5PN7:2U3I:DGCG:IJ42
Debug mode (server): true
 File Descriptors: 12
 Goroutines: 18
 System Time: 2016-02-19T09:26:19.888234798Z
 EventsListeners: 0
 Init SHA1: 
 Init Path: /usr/local/bin/docker
 Docker Root Dir: /mnt/sda1/var/lib/docker
Username: kohei
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox

・-D
-Dオプションでdockerのデバッグ情報が出力されます。

$ docker -D info
DEBU[0000] Trusting certs with subjects: [010
                                             U
kohei] 
Containers: 2
Images: 10
Server Version: 1.9.0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 14
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.12-boot2docker
Operating System: Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: 7MF2:JTD4:5MOS:LUDN:77GE:W7AG:YKIG:LGXI:5PN7:2U3I:DGCG:IJ42
Debug mode (server): true
 File Descriptors: 12
 Goroutines: 18
 System Time: 2016-02-19T09:26:34.291738346Z
 EventsListeners: 0
 Init SHA1: 
 Init Path: /usr/local/bin/docker
 Docker Root Dir: /mnt/sda1/var/lib/docker
Username: kohei
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox

以上となります。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?