1 Answer
- Newest
- Most votes
- Most comments
0
It looks like you are seeing the nginx default index.html.
You will need to place your web page files in the nginx document root in the Docker container.
For example, when starting a container, the "-v" option can be used to bind-mount a local directory from the container to share files within the container.
https://hub.docker.com/_/nginx
For example, the following command will start it.
In the case of the following command, if you place your web page files in "/some/content", they will be shared to "/usr/share/nginx/html" in the container.
docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d nginx
Relevant content
- Accepted Answerasked 2 years ago
- Accepted Answerasked a month ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 9 months ago
Thanks for your reply. Actually I already run my web service in a container.
If you are running it, you should only need to place your website content in the nginx document root of the Docker container.