Docker Server Re-Initialization: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= If Docker is already running, re-initialize Docker: This will destroy any containers or images currently on the host. # systemctl stop docker # rm -rf /var/l...") |
No edit summary |
||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
=Procedure= | |||
<pre> | |||
systemctl stop docker | |||
</pre> | |||
If there is any content in /var/lib/docker/, it must be deleted. Files will be present if Docker has been used. | |||
<pre> | |||
rm -rf /var/lib/docker/* | |||
</pre> | |||
<pre> | |||
systemctl start docker | |||
</pre> | |||
{{External|https://docs.openshift.com/container-platform/3.5/install_config/install/host_preparation.html#reconfiguring-docker-storage}} | |||
Revision as of 19:17, 23 May 2017
Internal
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