docker-for-mac-nfs icon indicating copy to clipboard operation
docker-for-mac-nfs copied to clipboard

nfs share doesn't work (freeze)

Open spras opened this issue 8 years ago • 2 comments

Hi,

Trying to install docker-for-mac-nfs, without success.

Docker Version 1.13.0 (15072) Channel: Stable 0c6d765c54

macOS Sierra 10.12.2 (16C67)

Every step of the installation procedure seems OK

./import.sh
+ tar -czf original.tar.gz @/Applications/Docker.app/Contents/Resources/moby/initrd.img
++ xxd -p -c 4 -s 4 /Applications/Docker.app/Contents/Resources/moby/initrd.img
++ grep -n -m 1 1f8b0800
++ cut -f 1 -d :
+ DWORD_OFFSET=12707572
+ OFFSET=50830288


/Users -mapall=501:20 localhost
+ dd if=/Applications/Docker.app/Contents/Resources/moby/initrd.img of=tail.bin bs=50830288 skip=1
0+1 records in
0+1 records out
4570448 bytes transferred in 0.005545 secs (824226001 bytes/sec)
./make.sh
++ docker create -i alpine:latest /bin/sh
+ container=422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102
+ trap 'docker rm "422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102"' exit
+ zcat
+ docker cp - 422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102:/srv/
+ tar -C extra -c .
+ docker cp - 422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102:/srv/
+ docker start -ai 422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102
+ chroot /srv/ /bin/sh
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
v3.5.1-8-g53a9b8c722 [http://dl-cdn.alpinelinux.org/alpine/v3.5/main]
OK: 5649 distinct packages available
(1/8) Installing libtirpc (1.0.1-r0)
(2/8) Installing rpcbind (0.2.3-r3)
Executing rpcbind-0.2.3-r3.pre-install
(3/8) Installing device-mapper-libs (2.02.168-r3)
(4/8) Installing libevent (2.0.22-r1)
(5/8) Installing libmount (2.28.2-r1)
(6/8) Installing libnfsidmap (0.25-r1)
(7/8) Installing sqlite-libs (3.15.2-r0)
(8/8) Installing nfs-utils (1.3.4-r0)
Executing busybox-1.25.1-r0.trigger
OK: 41 MiB in 58 packages
+ cd /srv/
+ find .
+ cpio -o -H newc
+ gzip -9
+ docker cp 422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102:/output.img initrd.img
+ cat tail.bin
+ docker rm 422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102
422d48e337a9844c8e58a0aeda84ed3583b13cf88e05c64b2ab4d319673fd102
sudo nfsd status
Password:
nfsd service is enabled
nfsd is running (pid 987, 8 threads)
cat /etc/exports
/Users -mapall=501:20 localhost

When i switch to the generated initrd.img and start docker for mac

Il couldn't mount a volume from my host, the container is created but not started

docker run --rm -it -v ~/docker-for-mac-nfs:/app composer bash

it never ends, i see the container created, but not running

docker ps -a
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS                    PORTS               NAMES
f231d8006785        composer                 "/docker-entrypoin..."   9 seconds ago       Created                                       nostalgic_swartz

I try to downgrade to docker 1.12.5 as said in #5 , but it doesn't work as the #4 as modified the import.sh script, OFFSET=0 as it dosen't found 1f8b0800 in the dd command before

Any idea ?

Thank's

spras avatar Jan 30 '17 08:01 spras

@spras You must replace 501:20 with your ids. Run id to get them.

dpisarewski avatar Feb 14 '17 15:02 dpisarewski

same problem

OSX El Capitan 10.11.6
Version 17.03.1-ce-mac5 (16048)
Channel: stable
b18e2a50cc

mkusher avatar Mar 30 '17 09:03 mkusher