k2helix

joined 2 years ago
[–] k2helix@lemmy.world 3 points 5 months ago

No pressure! Time keeps going, so I hope you'll eventually find the time to reflect. It doesn't have to be now, either. But I understand you, sometimes you need to stop and think, and it feels bad when you can't. Although sometimes I'd prefer not having enough time to think, I tend to overthink a lot. Take care and stay strong ✌️

[–] k2helix@lemmy.world 5 points 5 months ago* (last edited 5 months ago) (2 children)

Stay strong friend! I know I'm just a stranger but I'm here if you need someone to talk to.

 

I have a docker compose file with a bind volume. It basically mounts /media/user/drive/media to the container's /mnt.

It works as expected when /media/user/drive/ is mounted and its media folder has the files I want the container to see.

However, as it's a network drive, the container usually tries to start before it is mounted, so it would throw the error that /media/user/drive/media doesn't exist. So I created an empty folder in /media/user/drive called media while the drive was not mounted so that at least the container starts with the volume /mnt being empty until the network drive gets mounted and all the files appear at /media/user/drive/media.

To my surprise, when the drive gets mounted, even though if I do ls /media/user/drive/media it lists the drive contents correctly, the container still sees /mnt empty.

How would I go about getting the drive files inside the docker container when it automatically starts?

 

I'll be sitting a CAE exam this Friday and I'd enjoy learning some vocabulary I can use when doing it.

Some idiomatic expressions, collocations or just some fancy adjectives or adverbs that you think could be useful. Something that if the examiner saw would make them say wow.

There is an speaking part where it's mostly informal language that I'm going to use and a more formal writing part.

Thanks for your help.