I had my first installation running from a USB-Disk. But that was a bootable linux disk. Not a disk that I plugged in after booting my machine.
If plugging in after boot is a requirement, I think you can store the docker data on the stick, mount your USB device into /var/docker. And then restart your Docker service.
However, with this solution, when you unplug the USB device, all of the containers have to be stopped. Otherwise, data will be lost.
BTW: The problem I had with USB, was the speed. USB-storage is not the fastest one available.
Replies (1)
Hello Kieran,
I had my first installation running from a USB-Disk. But that was a bootable linux disk. Not a disk that I plugged in after booting my machine.
If plugging in after boot is a requirement, I think you can store the docker data on the stick, mount your USB device into
/var/docker
. And then restart your Docker service.However, with this solution, when you unplug the USB device, all of the containers have to be stopped. Otherwise, data will be lost.
BTW: The problem I had with USB, was the speed. USB-storage is not the fastest one available.
best regards
Johan