I am wanting to install docker onto a external SSD. I currently have an issue where docker containers will create a duplicate directory in the same location as the existing directory and write to that instead of writing to the directory that already exists.
I want to, straight up install docker onto the SSD itself so that problem disappears. What I am thinking is, it has to do with docker starting up and writing data before the SSD has a chance to actually mount.
I have tested it with my nextcloud container. I have set the restart policy to never and then rebooted my pi. After I have confirmed that the original directory exists and ensured that the duplicate directory is deleted, I started up my nexcloud container. Doing this stops the directory duplication, but… that would be a hassle having to go through this ritual in the event where my raspberrypi 4 were to ever power cycles for some reason.
In the pursuit to install docker onto a external SSD, I tried a sudo curl -sSL https://get.docker.com | sh -o [PATH], it resulted:
sh: 0: Illegal option -o [PATH]
curl: (23) Failure writing output to destination
user25248619 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1