Additional Docker commands

This section provides information on additional Docker commands for awareness.

About this task

To stop the Docker service:

$ service docker stop 

To get information about the installed Docker version and whether it is installed properly:

$ docker version 

For example: The $ docker version displays whether an install is successful or not.

$ docker version 

Client: Docker Engine - Community 

Version: 19.03.12 

API version: 1.40 

Go version: go1.13.10 

Git commit: 48a66213fe 

Built: Mon Jun 22 15:46:54 2020 

OS/Arch: linux/amd64 

Experimental: false 

 

Server: Docker Engine - Community 

Engine: 

Version: 19.03.12 

API version: 1.40 (minimum version 1.12) 

Go version: go1.13.10 

Git commit: 48a66213fe 

Built: Mon Jun 22 15:45:28 2020 

OS/Arch: linux/amd64 

Experimental: false 

containerd: 

Version: 1.2.13 

GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 

runc: 

Version: 1.0.0-rc10 

GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd 

docker-init: 

Version: 0.18.0 

GitCommit: fec3683 

To run a demo application (hello-world):

$ docker run hello-world