docker 内的人偶代理卡在重启循环中
puppet agent inside docker stuck in restart loop
我正在尝试通过 Docker 配置代理等。我有这个撰写文件:
services:
puppetserver:
container_name: puppetserver
hostname: puppet
image: puppet/puppetserver
links:
- puppetdb
networks:
- puppetnet
depends_on:
- puppetdb
puppetdb:
container_name: puppetdb
hostname: puppetdb
image: puppet/puppetdb
networks:
- puppetnet
restart: always
agent:
container_name: agent
hostname: agent
image: puppet/puppet-agent
links:
- puppetserver
networks:
- puppetnet
restart: always
networks:
puppetnet:
name: puppetnet
在我启动它之后,代理会重新启动几次以等待人偶服务器启动,但随后会重新启动并永远停留在那里。
我仔细阅读了puppet/puppet-agent页面,上面写着
Note that this is of limited use outside testing, in that this code changes the running container, which then exits.
所以无限重启是可以预料的。
我正在尝试通过 Docker 配置代理等。我有这个撰写文件:
services:
puppetserver:
container_name: puppetserver
hostname: puppet
image: puppet/puppetserver
links:
- puppetdb
networks:
- puppetnet
depends_on:
- puppetdb
puppetdb:
container_name: puppetdb
hostname: puppetdb
image: puppet/puppetdb
networks:
- puppetnet
restart: always
agent:
container_name: agent
hostname: agent
image: puppet/puppet-agent
links:
- puppetserver
networks:
- puppetnet
restart: always
networks:
puppetnet:
name: puppetnet
在我启动它之后,代理会重新启动几次以等待人偶服务器启动,但随后会重新启动并永远停留在那里。
我仔细阅读了puppet/puppet-agent页面,上面写着
Note that this is of limited use outside testing, in that this code changes the running container, which then exits.
所以无限重启是可以预料的。