Created
December 2, 2023 13:01
-
-
Save 0187773933/443e052b3edc2dd4d0bc74b5fc731165 to your computer and use it in GitHub Desktop.
Docker On USB Drive
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
lsusb | |
sudo mkfs.ext4 /dev/sda1 | |
sudo mkdir /mnt/usbdrive | |
sudo blkid | |
sudo nano /etc/fstab | |
UUID=your-drive-uuid /mnt/usbdrive ext4 defaults 0 2 | |
sudo mount -a | |
sudo nano /etc/docker/daemon.json | |
{ | |
"data-root": "/mnt/usbdrive/docker" | |
} | |
sudo systemctl restart docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment