[英]I can't see my html when I built container with docker
在文件目錄 C:\Users\hailey\Desktop\GitTest 我的項目文件在哪里。
# getting bse image nginx
FROM nginx
MAINTAINER hailey
COPY . /usr/share/nginx/html
這是我的 docker 文件,我想運行我的 html 文件,該文件位於 C:\Users\hailey\Desktop\GitTest
當我訪問http://127.0.0.1:8080/時,我只看到這個頁面,它不是 helloWorld.html
您可以復制 testhelloWorld.html 並將其替換為 index.html
COPY testhelloWorld.html /usr/share/nginx/html/index.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.