NFS Native Support

It may be the same issue we have in Windows where there is a race condition of the share drive not connected yet before the containers start up.

Could you explain this a bit more? I’m having an issue like this with the NFS native support on Mac. I need the shared directory (the root of the docker4drupal repo, which has docker-compose.yml and such) to be shared with a php container and an nginx container. But the php container never comes up, which takes down the nginx container with it.

I’m not sure what NFS options would be needed for a php-fpm based container and an nginx container to share the same NFS share. But this does not appear to work:

$ docker volume inspect d8_d8-nfs
[
    {
        "CreatedAt": "2018-08-07T01:01:32Z",
        "Driver": "local",
        "Labels": {
            "com.docker.compose.project": "d8",
            "com.docker.compose.version": "1.22.0",
            "com.docker.compose.volume": "d8-nfs"
        },
        "Mountpoint": "/var/lib/docker/volumes/d8_d8-nfs/_data",
        "Name": "d8_d8-nfs",
        "Options": {
            "device": ":/Users/myacct/sites/d8",
            "o": "addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3",
            "type": "nfs"
        },
        "Scope": "local"
    }
]