docker-registry-frontend 启动报错
"AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.19.0.2. Set the ‘ServerName’ directive globally to suppress this message
解决办法
docker ps 查看容器id
通过容器id进入docker 容器
docker exec -it d018f69335b4 /bin/bash
编辑 docker-site.conf 文件,没有vim 可以先把文件复制到宿主机,再放回去
vim /etc/apache2/sites-enabled/docker-site.conf
加一行
ServerName 172.19.0.2
重启容器, 问题解决。

本文介绍了解决docker-registry-frontend启动时遇到的关于服务器名称未正确配置的问题。通过修改容器内的Apache配置文件并指定ServerName指令来解决由于无法确定服务器全称而产生的警告。
1308

被折叠的 条评论
为什么被折叠?



