[lxc-users] lxc and encfs

Mittelsdorf, Bjoern Bjoern.Mittelsdorf at scheer-group.com
Tue Feb 16 13:50:08 UTC 2016


Hi all,

I face a problem with encfs encrypted folders mounted into lxc containers.

I have a public encfs folder, which is controlled and provided by the host, 
encrypted: /var/lxc-crypt
public: /var/lxc-data 

containing one directory for each container, e.g.:
/var/lxc-data/xyz

Each container mounts his directory via its config:

lxc.mount.entry = /var/lxc-data/xyz /var/vm/xyz/rootfs/var/encryptedData none bind 0 0

Each time I shutdown one of the containers the host mount point for the unencrypted data goes to waste, dragging the other container mount points down with it:

ls -ltr /var/
ls: cannot access /var/lxc-data: Transport endpoint is not connected
total 56
d?????????  ? ?      ?         ?            ? lxc-data

I am aware of the fact that encfs is not the best choice but I would really happily stick with it for the moment.

As you can see, I have no clue what is going on.

Best regards

Björn


More information about the lxc-users mailing list