MaximeD/docker-react-native

react-native.sh problem

Opened this issue · 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.

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"

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$