V
V
Vladyslav2021-02-06 23:13:22
Node.js
Vladyslav, 2021-02-06 23:13:22

Why does page not found fall out, but everything is beautifully created in Docker?

Guys, I've been trying to launch a container according to various instructions for a day now. Today I tried to launch my container from the official site with a tutorial. Here you can see the location of the files and the entire Dockerfile
___________________
docker build -t todo . docker run -name v1
-dp 3000:3000 todo - everything is fine until opening in the browser. Then page not found appears https://docs.docker.com/get-started/02_our_app/


601ef83d14334645283515.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-02-07
@Avgona

without seeing container logs, docker ps output, etc. , not seeing how you collect what, etc. It's hard to pinpoint exactly what's wrong.
But! Based on my impressions, I would bet on the curvature of the platform - Docker for Windows, this is a strange docker with which anything can happen.
I don't have a Windows computer with docker at hand, but on my regular mac, this whole test task was assembled and took off in a few minutes. Check the logs, check which ports are bound in the system after starting the container, if there is some kind of firewall - turn it off.
601f77bc9c064747981481.png
added a screenshot
601f784f0925b243551187.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question