puppetlabs-docker icon indicating copy to clipboard operation
puppetlabs-docker copied to clipboard

docker_run returns no such file or directory - docker

Open bmagistro opened this issue 2 years ago • 3 comments

Still working on root causing this. If I try to apply a manifest with docker::run included (fresh host build) it will error out with no such file or directory - docker. If I remove just this portion (docker::run) everything work as expected. I was expecting the relationships (https://github.com/puppetlabs/puppetlabs-docker/blob/main/manifests/init.pp#L635) to let this behave but have not generated a dependency/relation graph from puppet to review yet either.

Ideally one would be able to rebuild a host and not need to temporarily edit or remove a manifest to complete a rebuild.

CentOS 7.9/9.1 Puppet 6.28.0

bmagistro avatar Jan 05 '23 21:01 bmagistro

Found the same issue with Puppet 7 and version 6.x of puppetlabs-docker.

Hufschmidt avatar Aug 25 '23 10:08 Hufschmidt

I think it's caused by this line in run.pp: https://github.com/puppetlabs/puppetlabs-docker/blob/65e36c1d77bf5212ca34601d87e32cb75e58b699/manifests/run.pp#L470 which calls https://github.com/puppetlabs/puppetlabs-docker/blob/65e36c1d77bf5212ca34601d87e32cb75e58b699/lib/puppet/functions/docker_params_changed.rb#L80 on the agent.

martijndegouw avatar Sep 22 '23 12:09 martijndegouw