After starting a container, passing host and token as env variables, the NFS access point is not exposed to the host system.
$ docker run -it --privileged -e ONECLIENT_PROVIDER_HOST -e ONECLIENT_ACCESS_TOKEN -v ~/.oneclient_local:/root/.local/share/oneclient onedata/oneclient:17.06.0-beta6
Connecting to provider 'oneprovider.cloud.cnaf.infn.it:5555' using session ID: '7800789129593989533'...
Getting configuration...
Oneclient has been successfully mounted in '/mnt/oneclient'.
but logging in the container one can easily see that NFS is not running, and doesn't start
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
40057641ed30 onedata/oneclient:17.06.0-beta6 "/root/run.sh /mnt..." 2 minutes ago Up 2 minutes eloquent_morse
$ docker exec -it 40057641ed30 bash
root@40057641ed30:/tmp# service nfs-kernel-server status\
nfsd not running
root@40057641ed30:/tmp# service nfs-kernel-server start
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
root@40057641ed30:/tmp# service nfs-kernel-server status
nfsd not running
as confirmed by trying to mount the remote volume on the host
$ docker inspect --format "{{ .NetworkSettings.IPAddress }}" $(docker ps -ql)
172.17.0.2


Tested on 17.06.0-beta6, OSX version 10.12.5, Docker version 17.06.0-ce-mac19 (18663)
After starting a container, passing host and token as env variables, the NFS access point is not exposed to the host system.
but logging in the container one can easily see that NFS is not running, and doesn't start
as confirmed by trying to mount the remote volume on the host
Tested on
17.06.0-beta6, OSX version 10.12.5, Docker version 17.06.0-ce-mac19 (18663)