docker - 我无法在 docker 上连接到我的 hugo 站点
问题描述
最近我创建了一个 docker 并在那里创建了一个hugo
站点,当我启动页面时出现问题,但在我的导航器中没有收费。我是新手,所以我迷路了。
这是我启动网站时显示的内容:
WARN 2019/12/09 16:15:11 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
| EN
+------------------+----+
Pages | 4
Paginator pages | 0
Non-page files | 0
Static files | 17
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 6 ms
Watching for changes in /cvcontainer/cv-online/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /cvcontainer/cv-online/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
解决方案
--bind 0.0.0.0
运行服务器时尝试添加。例如。CMD ["hugo", "server", "--bind=0.0.0.0"]
.
推荐阅读
- c# - 使用 \b 时正则表达式不匹配确切的字符串
- python - 读取包含单词 NUL 的 CSV 文件的 Python 问题
- api - 如何查询 gRPC 端点?
- angular - ng-mocks 没有实例化被测试的组件
- javascript - 谷歌服务帐号授权
- dynamics-crm - 编辑 Xrm.Utility.confirmDialog 按钮文本
- tesseract - 需要使用 Tesseract 在 Android 手机上进行大文本验证(多屏)的解决方案
- powershell - 试图在 powershell 中创建一个虚假的 webrequest 来测试重试后来自 Microsoft API 的 429 状态码错误
- sql - 带有连接的雄辩选择并且在原始语句中不存在
- python - 找不到页面 (404) (Django)