Skip to content

Error: No such file or directory if restart: always is set #694

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

Closed
ahoiroman opened this issue Dec 14, 2020 · 4 comments
Closed

Error: No such file or directory if restart: always is set #694

ahoiroman opened this issue Dec 14, 2020 · 4 comments

Comments

@ahoiroman
Copy link

Describe the Bug

If I run a container using Docker::run setting restart: always, the following error is being thrown:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, No such file or directory - docker (file: /etc/puppetlabs/code/environments/production/modules/docker/manifests/run.pp, line: 415, column: 25) (file: /etc/puppetlabs/code/environments/production/modules/docker/manifests/run_instance.pp, line: 8) on node example.org

Expected Behavior

Creation of container without errors

Steps to Reproduce

Create a container like

traefik:
  image: traefik:latest
  ensure: present
  restart: always
  ports:
  - 80:80
  - 443:443
  - 8080:8080

Environment

  • Platform Debian

Additional Context

Docker::run described with Foreman ENC in this example.

@ahoiroman ahoiroman added the bug label Dec 14, 2020
@fraenki
Copy link

fraenki commented Jan 25, 2021

Error while evaluating a Function Call, No such file or directory - docker

I'm getting the same error on CentOS 7.

@charlysotelo
Copy link

Jus FYI as a workaround, you can use extra_parameters => [ '--restart=always' ], instead of restart => always

@sdinten
Copy link
Contributor

sdinten commented Jul 27, 2021

I don't think this is a defect; see issue #689 comment: #689 (comment)

@github-actions
Copy link

This issue has been marked as stale because it has been open for a while and has had no recent activity. If this issue is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants