tried image created successfully run successfully but web page not load successfully already try to map react 3000 port to localhost 3000 port as done in last run command still it doesn't work
@@mrstephanwehner I tried everything image successful created run but the default web page on browser is not working and i cross the port sync of local machine and react map they are perfectly mapped still no output
@@harshit___taneja I had exactly that problem and no video although I did things as I said until this video. I use this configuration in my Dockerfild and with this video it worked for me: FROM node:16.14.2-buster WORKDIR /app COPY package.json package.json COPY package-lock.json package-lock.json RUN npm install COPY . . CMD ["npm","run","start"] If not, watch this video where you specify a command in Dockerfild to explicitly tell Docker to keep listening for changes: ruclips.net/video/0B2raYYH2fE/видео.html and this video helped me too ruclips.net/video/8VHheCkw-7k/видео.html
Greetings, I got the “docker:invalid format.” Error Can you tell why? Here is the code for the last step. docker run -rm -p 3000:3000 -v $(pwd)/src:/app/src:ro react-image
I had the same problem, here how I solved: Firstly I changed Powershell to Bash. Then I wrote "docker ps" to see all the processes. I copied Container ID of react-image. Then I wrote "docker stop " After that I wrote "docker run -rm -p 3000:3000 -v $(pwd)/src:/app/src:ro react-image" then it solved.
I faced issue of using ${pwd} in mac, I replaced with $PWD and it worked. Thanks for this technique.
nice work and well understood, thanks
Well explained
Why you are creating react app first in local environment ? Example in your local machine there has no any node js and npm then what you will do ?
How do we build Production ready docker image?
como puedo hacer esto con windows?
tried image created successfully run successfully but web page not load successfully already try to map react 3000 port to localhost 3000 port as done in last run command still it doesn't work
Do you get the message "You can now view docker-react-app in your browser" as shown beginning around 13:30?
@@mrstephanwehner I tried everything image successful created run but the default web page on browser is not working and i cross the port sync of local machine and react map they are perfectly mapped still no output
@@harshit___taneja I had exactly that problem and no video although I did things as I said until this video. I use this configuration in my Dockerfild and with this video it worked for me:
FROM node:16.14.2-buster
WORKDIR /app
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install
COPY . .
CMD ["npm","run","start"]
If not, watch this video where you specify a command in Dockerfild to explicitly tell Docker to keep listening for changes:
ruclips.net/video/0B2raYYH2fE/видео.html
and this video helped me too
ruclips.net/video/8VHheCkw-7k/видео.html
@@JoseGarcia-vu5nd now it is working for me also
Greetings,
I got the “docker:invalid format.” Error
Can you tell why?
Here is the code for the last step.
docker run -rm -p 3000:3000 -v $(pwd)/src:/app/src:ro react-image
I had the same problem, here how I solved:
Firstly I changed Powershell to Bash.
Then I wrote "docker ps" to see all the processes.
I copied Container ID of react-image.
Then I wrote "docker stop "
After that I wrote "docker run -rm -p 3000:3000 -v $(pwd)/src:/app/src:ro react-image" then it solved.