Connecting to cifs share

ptmuldoon

Renowned Member
Apr 28, 2012
36
2
73
I have an existing Ubuntu VM in esxi that mounts to my (unraid) nasbox shares just fine. In that VM's /etc/fstab I have the following:

Code:
//192.168.11.41/Public /mnt/nasbox cifs vers=3.0,guest,uid=1000,iocharset=utf8  0  0

But when I use that same in my Ubuntu docker container, when I attempt to mount the share I get an error of:

mount error(1): Operation not permitted

In reading what I can, I added to the end the container config file the below, but still can't connect to the share:

Code:
lxc.apparmor.profile: lxc-container-default-cgns
features: nesting=1

Am I missing a step someplace in connecting the shares? I can connect those shares fine currently under my existing esxi ubuntu VM
 
Nothing specific necessary for mount.cifs in container, I suggest to check to following
- does it work if you make new ubuntu container?
- does it work from your host?
- does it work (also the above two cases) if you define somewhere a new samba share?

Check also your current apparmor profiles from /etc/apparmor.d/....