Ecryptfs in a docker container ( ubuntu)

Asked by varks on 2015-07-28

I am unable to get ecryptfs working in the docker container. I have loaded the ecrptfs module before the container was started.
ecryptfs-utils was installed in the container.

I hit the below issue when I try to mount ecryptfs.

root@eadc0bc6433b:/# mount -t ecryptfs secret secret
Exiting. Unable to obtain passwd info

From the code it looks like getpwuid function is failing. Please note that I am running as root. (uid is 0)

Can you please help me resolve this issue ?

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ecryptfs-utils Edit question
Assignee:
No assignee Edit question
Solved by:
varks
Solved:
2015-07-28
Last query:
2015-07-28
Last reply:
varks (var-kulkarni) said : #1

need to run docker in privileged mode.