DEV Community

Discussion on: Utilizing the power of Docker while building MERN Apps using mern-docker

Collapse
 
mnaguib2611 profile image
Mohammed Naguib

this worked with me ( added -i -t flags)
docker run -i -t -p 3000:3000 myapp-react:v1

-i leaves the stdin of the container opened
-t assigns a pseudo-tty (for interactive session with shell)

Collapse
 
knhn1004 profile image
Oliver Chou

Thanks, solved my problem