Docker常见问题整理笔记(一)

一、容器启动后一直处于restarting状态

0、问题常见

docker ps
CONTAINER ID        IMAGE                                                              COMMAND                CREATED             STATUS                          PORTS               NAMES
af3e886c69ea        registry.api.weibo.com/weibo/weibo_tech_pop.filebeat.image:5.6.1   "/usr/share/filebeat   18 minutes ago      Restarting (-1) 5 minutes ago                       voteshield_filebeat_container
79d06f50192c        registry.api.weibo.com/weibo/weibo_tech_pop.php71.image:1.8        "/usr/local/sinasrv2   9 months ago        Up 3 weeks                                          php_container

1、问题解决
查看容器日志,发现挂载的文件是一个目录,应该跟images有关,这里换了一个路径。

docker logs af3e886c69ea
filebeat2020/05/22 06:24:22.019784 beat.go:346: CRIT Exiting: error loading config file: read /etc/filebeat.yml: is a directory
Exiting: error loading config file: read /etc/filebeat.yml: is a directory

发表评论

电子邮件地址不会被公开。 必填项已用*标注