So I have this remote folder /mnt/shared
mounted with fuse. It is mostly available, except there shall be some disconnections from time to time.
The actual mounted folder /mnt/shared
becomes available again when the re-connection happens.
The issue is that I put this folder into a docker volume to make it available to my app: /shared
. When I start the container, the volume is available.
But if a disconnection happens in between, while the /mnt/shared
repo on the host machine is available, the /shared
folder is not accessible from the container, and I get:
user@machine:~$ docker exec -it e313ec554814 bash
root@e313ec554814:/app# ls /shared
ls: cannot access '/shared': Transport endpoint is not connected
In order to get it to work again, the only solution I found is to docker restart e313ec554814
, which brings downtime to my app, hence is not an acceptable solution.
So my questions are:
Is this somehow a docker "bug" not to reconnect to the mounted folder when it is available again?
Can I execute this task manually, without having to restart the whole container?
Thanks