so - I have two synology boxes - lets call them A and B. A is the fastest processor I could get - B is just extra storage, so the slowest.
so I run a bunch of docker containers on A, have a mount to B - and all works well.
Until the machine restarts.
What happens is that the docker container fires up before the share does - or without causing the mount to happen. For a while they would start up pointing to the directory behind the mount, which is the worst possible option - but I changed that to point each docker container to a directory under the mount, so they will just fail if the volume mapping isn't present.
But this means, if I restart, or the power goes out - which is depressingly frequent - the docker containers don't start.
Is there any way to force the mount to happen before the docker containers, or alternatively have them wait until the mount is present before trying to start?
so I run a bunch of docker containers on A, have a mount to B - and all works well.
Until the machine restarts.
What happens is that the docker container fires up before the share does - or without causing the mount to happen. For a while they would start up pointing to the directory behind the mount, which is the worst possible option - but I changed that to point each docker container to a directory under the mount, so they will just fail if the volume mapping isn't present.
But this means, if I restart, or the power goes out - which is depressingly frequent - the docker containers don't start.
Is there any way to force the mount to happen before the docker containers, or alternatively have them wait until the mount is present before trying to start?