I build a docker image with nginx plus a static html site.
I run it with following command:
docker run --rm -d -p 4016:80 172.25.128.67:9003/dcp/velero-docs:latest
now I can access it from 172.25.161.211:4016, but if I click any links in it, it will redirect to default 80 port, for example, there are some links in /index.html:
<ul class="nav-menu" id="header-nav">
<li class="home"><a href="/" title="Velero">Home</a></li>
<li class="docs"><a href="/docs/v1.14" title="Documentation">Documentation</a></li>
<li class="plugins"><a href="/plugins" title="Plugins">Plugins</a></li>
<li class="blog"><a href="/blog" title="Blog Posts">Blog</a></li>
<li class="community"><a href="/community" title="Community">Community</a></li>
<li class="resources"><a href="/resources" title="Resources">Resources</a></li>
</ul>
if I click the “Documentation”, it goes to http://172.25.161.211/docs/v1.14/
the Dockerfile have no any special settings:
FROM 172.25.128.67:9002/nginx:alpine-slim
copy ./ /usr/share/nginx/html
any possible cause for this ?