NFS server inside docker - fails to start

Docker version 1.12.3, build 6b644ec running on CentOS Linux release 7.2.1511 (Core)
Container: CentOS release 5.11 (Final)

I want to install and set up NFS server inside of my container (CentOS release 5.11 (Final))
However it fails to start up deamon:

[root@10666a3d378f /]# yum install nfs-utils nfs-utils-lib portmap
[root@10666a3d378f /]# /etc/init.d/portmap start
Starting portmap:                                          [  OK  ]
[root@10666a3d378f /]# /etc/init.d/nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS daemon:                                       [FAILED]

What am I doing wrong?

Try running your container in privileged mode:

docker run --privileged=true