You are not logged in.
I have an nvme drive I'd like to use for docker images. I'd like to mount it on /mnt/docker so I updated /etc/docker/daemon.json with data-root:"/mnt/docker" and edited my fstab to include:
# /dev/nvme1n1 --> docker
UUID=401e1807-a4d6-451a-a523-b9bd41ccc49f /mnt/docker btrfs rw,noatime,autodefrag,ssd,space_cache,subvolid=5,subvol=/ 0 0
However when I reboot I end up on an emergency shell and the only way to properly boot is to comment out the line in fstab.
I've tried with noauto,x-systemd.automount and I can reboot alright but the drive is not automounted.
Another thing I've tried is to change owenership of the mounted drive in /mnt/dockerr to user:user. I can reboot OK and the drive is mounted. I then install a docker image and works fine. However upon reboot, the drive is again not mounted.
What is the best way to mount a drive solely for docker images? I've checked the docker docs and there's a mention of Volumes and bind mounts but I'm not entirely sure how to proceed.
Offline