Docker - Sharing a code with the container

Hello Mosh,

After i execute the below command, the react app starts.

docker run -d -p 5001:3000 -v ${pwd}:/app react-app

After the index.html is updated, i cannot see updated title in the browser. Can you please guide what is wrong over here.

Thanks
Piyush

1 Like

Hi, I got the same problem.
I had to downgrade the version of docker and it worked. It might be a tiny problem with the version. I hope they would fix in the later version.

1 Like

Which version did you downgrade to?
I’m using Docker Desktop v3.3.3 for Windows 10.

Hi,
I’m using Docker Desktop v3.3.1 (downgrade from v3.3.3)
Docker engine: 2.3.3 (downgrade from 2.3.5)
MAC OS Version

1 Like

could you send to me docker vidly project that attached to course to test it
email : khiterab31@gmail.com

solution from stackoverflow

In short, Create a file .env in the app root directory

FAST_REFRESH=false
CHOKIDAR_USEPOLLING=true

Run the command again and it’ll work.