'Check in docker container if volume is mount [closed]
I have to copy backups file to \backups directory but only if directory has been mounted from other, specific server.
On my host machine I can see that directory as:
[email protected]:/home/myuser/backup on /media/storage type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
docker-compose.yml
[...]
volumes:
- "/media/storage/backups:/backups"
[...]
Inside the container I can see that mounted directory as
[email protected]:/home/myuser/backup on /backup type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
However when myserver.com server is disconnected, then the mount info doesn't change and is still seen as fuse.sshfs.
How to be sure that backup is going to be save to the right directory?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
