Objectives
- Install Docker on CentOS Linux 7
- Verify Docker installation
- Start and enable Docker Engine
Prerequisites
- 64-bit CentOS Linux 7
Sequence 1. Installing Docker
- Old version of Docker packages are available in the official repository of CentOS. Login as root user and remove old version, if installed.
- Install Yum Utils
- Configure Latest Docker Repository
- Install Latest version of Docker
- After installation is complete, start the Docker daemon:

- Verify that it’s running and, make sure it starts at every server reboot:
- The output should be similar to the following, showing that the service is active and running:
Sequence 2. Verify Docker Installation
Using docker consists of passing it a chain of options and subcommands followed by arguments. The syntax is: docker [option] [command] [arguments]- To view all available subcommands, type:

- To view the switches available to a specific command, type:
- To view system-wide information, use: