this post was submitted on 23 Jun 2024
9 points (100.0% liked)

Docker

966 readers
2 users here now

founded 1 year ago
MODERATORS
 

I am running Fedora Server with Docker installed, and it has a folder that connects to my NAS via SMB. I will have all of my Docker files (and Compose configs) stored on my NAS, since it has a lot more storage. I am worried that Docker will glitch out and cause a mess, since my NAS starts ~2 minutes later than my server from a reboot. Is there something that I can do to make sure Docker is able to connect to the SMB share safely?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 months ago

Make Docker depend on the mount. You can simply use systemctl edit docker.service and then

[Unit]
Requires=path-to-your-smb.mount
After=path-to-your-smb.mount

Then it will guarantee it's mounted by the time Docker starts.