Dealing with Docker taking over your root volume in Linux

  1. Stop docker, obviously
  2. Rsync the existing folder to another folder (any folder on the other volume)
  3. Bind-mount the new folder over the existing docker folder (you may delete the contents of /var/lib/docker … or just back it up somewhere)
  4. Start docker
  5. Recommended: add a line into /etc/fstab to make your mount permanent.

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store