linux_wiki:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
linux_wiki:docker [2018/04/09 01:07]
billdozor created
linux_wiki:docker [2018/04/09 01:08]
billdozor [Docker: Start and Test]
Line 84: Line 84:
   * Log out/log back in   * Log out/log back in
   * Verify the user can run docker commands without using sudo<code bash>docker run hello-world</code>   * Verify the user can run docker commands without using sudo<code bash>docker run hello-world</code>
 +
 +----
 +
 +====== Troubleshooting ======
 +
 +  * **Symptom**: Docker service fails to start
 +  * **Error Seen In Logs**: Error starting daemon: error initializing graphdriver: devicemapper: Non existing device vglocal-lvdockerpool
 +  * **Why**: /var/lib/docker contains metadata telling docker about the contents of device mapper storage. When /var/lib/docker is removed, metadata is lost. Then docker will detect the thin pool has data, but docker is unable to use it.
 +  * **Official Documentation**: https://access.redhat.com/solutions/2281281 
 +
 +__**The Fix**__
 +
 +  * Stop docker<code bash>systemctl stop docker</code>
 +  * Remove the docker thin pool logical volume<code bash>lvremove /dev/vglocal/lvdockerpool</code>
 +  * Re-create it (example using 100% of /dev/sde1)<code bash>lvcreate --extents 100%PVS --thin --name lvdockerpool vglocal /dev/sde1</code>
  
 ---- ----
  
  • linux_wiki/docker.txt
  • Last modified: 2019/07/20 18:13
  • by billdozor