These are the steps I took to set up:
On Ubuntu 22.04.3:
- Mount an external ssd, set to mount at startup, and with options nosuid, nodev, nofail, rw.
- Install Docker Desktop using the steps outlined in the docker installation guide for ubuntu located here.
- Reboot, start Docker Desktop.
- Proceed to settings through the dashboard.
- Under resources, disk image location, click on browse and attempt to change the location to the mount point for the external drive.
- Restart Docker Desktop.
- Observe that the disk image location under settings reverted to the original setting.
- Open ~/.docker/desktop/settings.json.
- Manually change the “dataFolder” setting to the mount path for the external drive.
- Restart Docker Desktop.
- Observe that the disk image location setting is reflecting the intended path.
- Explore to the mount path to inspect changes.
- Observe that a new folder, DockerDesktop has been created, and now contains a Docker.raw file.
- Proceed to pull a container and observe that it is running in the dashboard.
- Restart Docker Desktop.
- Observe that the container is no longer listed and that no images are registered.
Other notes:
If I set the disk image location to a path not located on the external ssd, docker desktop appears to work as expected, and persists images and containers through a restart.
This is my first attempt to install Docker Desktop on linux and any help provided is appreciated.