You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i run puppet, it runs all the containers specified in puppet with hiera. the puppet agent run is successful. But when i restart the server, docker runs the containers on boot as i have mentions restart: always in my hiera config.After the boot when puppet agent is run, it throws error because it tries to create those containers again and docker::run fails because the containers with the exact name is already present.
This is my hiera config.
Error: /Stage[main]/SomeClass::Docker/Docker::Run[health_check]/Exec[run health_check with docker]/returns: change from notrun to 0 failed: docker run -d --net bridge -m 0b --detach=true -p 81:80 --name health-check --cidfile=/var/run/docker-health-check.cid --restart="always" nginx returned 125 instead of one of [0]
I also added use_name: true but thats been deprecated. so doesn't seem to a problem regarding that.
Version: garethr-docker 5.0.0 garethr-docker 5.3.0
on AmazonLinux
The text was updated successfully, but these errors were encountered:
The reason is probably that the cid file is in /var/run, which is cleaned on reboot. Maybe put this in /var/cache/puppet-garethr-docker or /var/lib/puppet/garethr-docker or similar?
When i run puppet, it runs all the containers specified in puppet with hiera. the puppet agent run is successful. But when i restart the server, docker runs the containers on boot as i have mentions
restart: always
in my hiera config.After the boot when puppet agent is run, it throws error because it tries to create those containers again and docker::run fails because the containers with the exact name is already present.This is my hiera config.
and from puppet i use it as:
Error on puppet agent:
I also added
use_name: true
but thats been deprecated. so doesn't seem to a problem regarding that.Version:
garethr-docker 5.0.0
garethr-docker 5.3.0
on AmazonLinux
The text was updated successfully, but these errors were encountered: