-
Notifications
You must be signed in to change notification settings - Fork 319
container will not start #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Can you please provide a little more information by filling out the template? |
No problem. I've filled out the template as much as I can.
|
I had this same issue, but adding: The reason this worked for me was, by adding the remove_container_on_start => false, it changed the template for the service file to use the create command instead of the run command. The create command for docker is one step in the docker run command and does not allow the detached flag. Further reading here: I'm a little lost on what the remove_container_on_start parameter does or why it's important. |
On an os using systemd you don't need the |
Your not even using this forge module it seems your using garethr-docker? |
@acurus-puppetmaster Our puppetfile is configured to use the puppetlabs-docker module, I'm not sure why puppet module list is showing garethr-docker. |
This is the module list on our master.
|
In any case if you're using systemd, remove the detach. I used your code without any issues are removing this. |
@davejrt Thanks, everything is working now. |
@davejrt Just ran into this problem again. It would be really nice if the documentation in the README.md file would mention something about removing the detach => true parameter if you actually want your containers to run. |
Closing, documented detach param |
There appears to be an issue starting containers as a systemd service. I've defined a docker::run resource and puppet runs successfully however the container fails to start as shown below.
I am able to start the container by running the /usr/local/bin/docker-run-portainer.sh script however the container is killed the next time that puppet runs.
Here is the resource definition.
Does anybody know how to resolve this?
The text was updated successfully, but these errors were encountered: