我目前正在学习docker并遵循本教程。
http://containertutorials.com/alpine/alpine-apache-server-static-site.html
我已按照所有步骤操作,但docker容器会在几秒钟内退出。这是日志,
[s6-init] making user provided files available at
/var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 30-resolver: executing...
[cont-init.d] 30-resolver: exited 0.
[cont-init.d] 40-resolver: executing...
[cont-init.d] 40-resolver: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
AH00558: httpd: Could not reliably determine the server's fully qualified
domain name, using 172.17.0.3. Set the 'ServerName' directive globally to
suppress this message
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
我错过了什么吗?
(我也在ubuntu中运行它,不确定这是否有帮助。)
答案 0 :(得分:0)
我按照教程,得到了同样的错误。看起来像smebberson / alpine-apache的源图像有问题。
通过不解决您的问题解决您的问题:找到另一个教程(使用另一个图像)来学习。在这个特定的教程中不要失眠!