---
title: "Comment by Ofir Aghai on \"How to create a Node App within a Docker container\" | Hashnode"
description: "run &quot;docker run -it docker_nodejs_app&quot; in terminal, but when going to http://localhost:3000/ from the browser, i got the error: &quot;This site can&#3"
url: "https://hashnode.com/posts/how-to-create-a-node-app-within-a-docker-container/5ce5674efc6d4123769342c6/comment/5e1b229f32d5fad159b68fcf"
---

[Discussion](https://hashnode.com/posts/how-to-create-a-node-app-within-a-docker-container/5ce5674efc6d4123769342c6)

Comment [How to create a Node App within a Docker container](https://hashnode.com/posts/how-to-create-a-node-app-within-a-docker-container/5ce5674efc6d4123769342c6)

[Ofir Aghai](https://hashnode.com/@iofirag)

[Jan 12, 2020](https://hashnode.com/posts/how-to-create-a-node-app-within-a-docker-container/5ce5674efc6d4123769342c6/comment/5e1b229f32d5fad159b68fcf)

run "docker run -it docker\_nodejs\_app" in terminal, but when going to [localhost](http://localhost:3000/) from the browser, i got the error: "This site can't be reached"

help?

[Ofir Aghai](https://hashnode.com/@iofirag)

[Jan 12, 2020](https://hashnode.com/posts/how-to-create-a-node-app-within-a-docker-container/5ce5674efc6d4123769342c6/comment/5e1b229f32d5fad159b68fcf#reply-5e1b29d77a1d3fcc59026970)

run "docker run -p 3000:3000 docker\_nodejs\_app" instead of "docker run -it docker\_nodejs\_app"

solve my problem. :)

also, "EXPOSE 3000:3000" in Dockerfile - didnt work, and should be just: "EXPOSE 3000"
