Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 22161

Beginner Basics • Containers - Mounts vs Root Dir vs Work Dir

$
0
0
When it comes to containers I guess I am a little confused on the matter when it comes to the paths.

Typically when running docker containers I'll have everything neatly formatted in a docker/container/{container_name} directory on my computer and everything is stored within that {container_name}.

I didn't find much documentation on the matter but noticed in the Pi-Hole container tutorial https://www.youtube.com/watch?v=UMcJs4oyHDk the folder structure was laid out like this
Code:
mounts - /disk1/etc -> /etc/pihole/disk1/etc-dnsmasq -> /etc/dnsmasq.droot dir -/disk1/piholework dir - /opt/technitium/dns #This wasn't in the video but following the steps this is the working directory for my container

So far it seems there are four folders that contains the container data which seems pretty messy
/disk1/etc/
/disk1/etc-dnsmasq
/disk1/pihole
/opt/technitium/dns (Again, not in the video but I am assuming it's the same since I followed the instructions and this was automatic)

Is there a reason to keep the folders separated or can/should you keep them together?

Statistics: Posted by TrevinLC1997 — Tue Jan 28, 2025 2:47 am



Viewing all articles
Browse latest Browse all 22161

Trending Articles