adlogix / docker-machine-nfs

Activates NFS on docker-machine
MIT License
794 stars 104 forks source link

Fix incorrect error message after running #2

Closed sbesselsen closed 9 years ago

sbesselsen commented 9 years ago

The script would say [INFO] Verify NFS mount ... FAIL even though it was perfectly fine.

The reason was that docker-machine ssh <machine-name> df returned only: exit status 1

This seems to be related to some aufs-related file systems where df gets a "permission denied". Stuff like this:

none                     18.2G      4.2G     13.0G  24% /mnt/sda1/var/lib/docker/aufs/mnt/d52aab1e7fec612742470b048dc9baf4887c8c52dba430d106a0e72e426f502f
df: /var/run/docker/netns/d52aab1e7fec: Permission denied

I fixed this by making the df command always return with exit status 0.

ajmath commented 9 years ago

cool

tonivdv commented 9 years ago

Thank you @sbesselsen