Skip to content

Instantly share code, notes, and snippets.

@czuger
Last active July 18, 2025 08:38
Show Gist options
  • Select an option

  • Save czuger/2ee1b2900a0f2f09190f5bb4915282bb to your computer and use it in GitHub Desktop.

Select an option

Save czuger/2ee1b2900a0f2f09190f5bb4915282bb to your computer and use it in GitHub Desktop.
Modify docker data directory
# Edit or create a file in /etc/docker/daemon.json
sudo vim /etc/docker/daemon.json
# Modify or add
{
"data-root": "/new/data/root/path"
}
# Restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment