Last active
July 18, 2025 08:38
-
-
Save czuger/2ee1b2900a0f2f09190f5bb4915282bb to your computer and use it in GitHub Desktop.
Modify docker data directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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