-->

Tuesday, June 20, 2017

docker version and docker info commands

You can use the docker version command which gives you information about Current version of the docker installed, api version, go version and built.
 [user@ankit63001 ~]$ docker images  
 REPOSITORY     TAG         IMAGE ID      CREATED       SIZE
  hello-world     latest       1815c82652c0    5 days ago     1.84kB
 [user@ankit63001 ~]$ docker version
 Client:
 Version:   17.05.0-ce
 API version: 1.29
 Go version:  go1.7.5
 Git commit:  89658be
 Built:    Thu May 4 22:06:25 2017
 OS/Arch:   linux/amd64 
 Server:
 Version:   17.05.0-ce
 API version: 1.29 (minimum version 1.12)
 Go version:  go1.7.5
 Git commit:  89658be
 Built:    Thu May 4 22:06:25 2017
 OS/Arch:   linux/amd64
 Experimental: false
 [user@ankit63001 ~]$




You can get the complete details about your host and much more information using the docker info command
 [root@ankit63001 ~]# docker info  
 Containers: 1
  Running: 0
 Paused: 0
 Stopped: 1
 Images: 1
 Server Version: 17.05.0-ce
 Storage Driver: overlay
 Backing Filesystem: xfs
 Supports d_type: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9048e5e50717ea4497b757314bad98ea3763c145
 runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228
 init version: 949e6fa
 Security Options:
 seccomp
 Profile: default
 Kernel Version: 3.10.0-327.28.2.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 1
 Total Memory: 991.6MiB
 Name: ankit63XXX.XXXXXX.XXX
 ID: LFTK:7EXP:C4B5:A6MG:EZKW:LQ5I:GMTQ:DG3X:WD6H:CGAY:GULY:32ZT
 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

0 comments:

Post a Comment