I was following this post - the reference code is on GitHub. I have cloned the repository on my local.
The project has got a react app inside it. I'm trying to run it on my local following step 7 on the same post:
docker run -p 8080:80 shakyshane/cra-docker
This returns:
Unable to find image 'shakyshane/cra-docker:latest' locally
docker: Error response from daemon: pull access denied for shakyshane/cra-docker, repository does not exist or may require 'docker login'.
See 'docker run --help'.
I tried login to docker again but looks like since it belongs to @shakyShane I cannot access it.
I idiotically tried npm start
too but it's not a simple react app running on node - it's in the container and containers are not controlled by npm
Looks like docker pull shakyshane/cra-docker:latest
throws this:
Error response from daemon: pull access denied for shakyshane/cra-docker, repository does not exist or may require 'docker login'
So the question is how do I run this docker image on my local mac machine?
docker build . -t shakyshane/cra-docker
. That builds the image with the nameshakyshane/cra-docker
which you are trying to use in step 7. Since it cannot be found, it would seem the image was not built, at least not with the same name. – Harvelldocker build . -t xameeramir/cra-docker
I think this is where I am a culprit. – Blaise