Docker Server Re-Initialization

From NovaOrdis Knowledge Base
Revision as of 01:44, 24 May 2017 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

Docker state can be reset - for example in the case of re-initializing the external storage - by following the procedure below. This is necessary because the Docker server caches a "Base Device UUID" that does not match the signature of a re-initialized external storage.

Procedure

systemctl stop docker

If there is any content in /var/lib/docker/, it must be deleted. Files will be present if Docker has been used.

rm -rf /var/lib/docker/*
systemctl start docker
https://docs.openshift.com/container-platform/3.5/install_config/install/host_preparation.html#reconfiguring-docker-storage