Docker Server Runtime: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "<font color=red> Check if Docker is running: # systemctl is-active docker If Docker has not yet been started on the host, enable and start the service: # systemctl enable do...")
 
m (Ovidiu moved page Docker Runtime to Docker Server Runtime without leaving a redirect)
(No difference)

Revision as of 19:05, 23 May 2017

Check if Docker is running:

  1. systemctl is-active docker

If Docker has not yet been started on the host, enable and start the service:

  1. systemctl enable docker
  2. systemctl start docker

If Docker is already running, re-initialize Docker:

This will destroy any containers or images currently on the host.

  1. systemctl stop docker
  2. rm -rf /var/lib/docker/*
  3. systemctl restart docker

If there is any content in /var/lib/docker/, it must be deleted. Files will be present if Docker has been used prior to the installation of OpenShift Container Platform.

Then go to https://docs.openshift.com/container-platform/3.5/install_config/install/host_preparation.html#reconfiguring-docker-storage