Hacker News new | ask | show | jobs
by ghostly_s 1693 days ago
How do you handle access to network shares?
1 comments

I've not yet, but root inside the container is the user docker is running as outside, so I assume if that user can access the share it would be ok.

What protocol were you thinking of?

NFS or SMB. Just wondering as I've recently started exploring (lxc) containerization in my home lab and that was the big roadblock I hit with unprivileged containers. I guess the solution as you suggest is to mount in host and bind-mount in the ct, but that seems pretty unappealing for multiple reasons- it breaks the logical compartmentalization of app config in the container, no visibility on the server of which ct owns a connection, can't scope nfs permissions per container etc.