-
Notifications
You must be signed in to change notification settings - Fork 10
Mac Instructions
Follow the instructions at https://docs.docker.com/docker-for-mac/
You can start the default terminal by hitting 'Command–Space bar' and then typing terminal.
In the terminal that appears type the following command to create a volume.
docker volume create --name myvolume
docker run -it --rm -v myvolume:/workdir busybox chown -R 1000:1000 /workdir
- This container is what will allow you to see the files in the volume.
docker create -t -p 445:445 --name samba -v myvolume:/workdir crops/samba
- Start the samba container
docker start samba
- Create an alias for 127.0.0.1
OSX will not let you connect to a locally running samba share. Therefore, create an alias for 127.0.0.1 of 127.0.0.2.
sudo ifconfig lo0 127.0.0.2 alias up
Since you will always need to have the alias to connect to the samba container, you could also combine the start of samba and alias like so:
docker start samba && sudo ifconfig lo0 127.0.0.2 alias up
- Open the workdir in the file browser
Open Finder, then hit 'Command-K'. In the "Server Address" box type smb://127.0.0.2/workdir and click "Connect".
You can now use any of the other containers such as the poky container. The important part to remember is that the volume created above, is the one to use when specifying the workdir. For example, to run the poky container:
docker run --rm -it -v myvolume:/workdir crops/poky --workdir=/workdir