docker-react-native icon indicating copy to clipboard operation
docker-react-native copied to clipboard

react-native.sh problem

Open AlekKras opened this issue 6 years ago • 2 comments

I am not sure why but I had an issue running react-native.sh problem . However, once I looked closely at the file, I ran docker run --rm -it react-native bash which helped me. There are couple things which I would have put in the Dockerfile, but that's because of the Environment I work in. Just posting it here if the author decided to put a suggestion for future users.

AlekKras avatar Jun 04 '18 17:06 AlekKras

did you cloned this git repo on a seperate location other then in your home directory? i also did that and face same problem of yours. But the actual solution is to change the .bashrc command to export PATH="$HOME/YOUR/CLONED/REPO/PATH/docker-react-native:$PATH"

bmabir17 avatar Jun 13 '18 20:06 bmabir17

I ran the react-native.sh script from within the directory. However, it is looking for a shared mount volume

nathans-MacBook:docker-react-native nathansire$ sh react-native.sh init MyAwesomeProjet
docker: Error response from daemon: Mounts denied: The path /dev/bus/usb is not shared from OS X and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. . ERRO[0000] error waiting for container: context canceled nathans-MacBook:docker-react-native nathansire$

natesire avatar Nov 12 '18 00:11 natesire