ghedo / pflask

:sake: Lightweight process containers for Linux
https://ghedo.github.io/pflask/
BSD 2-Clause "Simplified" License
200 stars 33 forks source link

Feature request: support file bind mounts #3

Closed kergoth closed 9 years ago

kergoth commented 9 years ago

Bind mounting works for both files and directories, but pflask assumes that bind mounts are directories. This would be useful for things like /etc/resolv.conf, if one wants to avoid sudo cp'ing files like that into the container (the resolv.conf bind mount is default in systemd-nspawn, actually).

ghedo commented 9 years ago

Should be fixed in master, thanks for reporting.

the resolv.conf bind mount is default in systemd-nspawn

I think newer nspawn versions copy resolv.conf into the container https://github.com/systemd/systemd/blob/master/src/nspawn/nspawn.c#L1543