Docker
Perform these steps to install Docker.
The minimum Docker version is 1.13.1. If you are using an older image that comes with an older Docker version, upgrade Docker to 1.13.1 or newer.
Steps
- Install Docker service:
CentOS 7
yum install -y docker systemctl start docker systemctl enable docker
RHEL 7
yum install yum-utils yum-config-manager --enable rhui-REGION-rhel-server-extras yum install -y docker systemctl start docker systemctl enable docker
- Check the Docker Logging Driver
configuration:
docker info | grep "Logging Driver"
- If it is set to
Logging Driver: journald
, you must set it to “json-file” instead. To do that:- Open the
docker
file for editing:vi /etc/sysconfig/docker
- Edit the following part of the file so that it looks like below (showing
log-driver=json-file
):# Modify these options if you want to change the way the docker daemon runs OPTIONS='--selinux-enabled --log-driver=json-file --signature-verification=false'
- Restart
Docker:
systemctl restart docker systemctl status docker
- Open the