我正在研究Docker's website上的教程,并且无法像所描述的那样让端口映射。
我使用<div class="container">
<div class="row">
<div class ='col-sm-12'>
<p class="panel-body">Instagram is a mobile,desktop,and r 2010 as a free mobile app
exclusively for the iOS operating system. A version for os or videos
digital filters to their images, and add locations
Instagram was its confining of photos to a square. </p>
</div>
</div>
</div>
暴露我的Dockerfile中的端口并运行EXPOSE 80
来启动应用程序。代码直接从教程中复制,但为了完整起见,烧瓶服务器以:
docker run -p 4000:80 containername
当我在浏览器中访问localhost:4000或卷曲它时,我发现该网站无法访问。