puppetlabs-docker
puppetlabs-docker copied to clipboard
Error: Failed to apply catalog: No such file or directory - docker
Describe the Bug
I have my init.pp file include 2 classes:
- docker_setup.pp
- docker_container.pp
docker_setup.pp has the following code:
class docker_setup {
class { 'docker':
docker_users => ['roy'],
extra_parameters => ['--data-root=/proj/docker'],
}
}
docker_container.pp has the following code:
docker::run { 'splunk':
#ensure => absent,
image => 'splunk/splunk:8.2.5',
ports => ['127.0.0.1:8000:8000','127.0.0.1:8089:8089'],
restart => 'no',
require => Class['docker'],
}
when running puppet agent -t I get the following error:
Error: Failed to apply catalog: No such file or directory - docker
Expected Behavior
I would expect docker to be installed and then start the container
Environment
- puppet labs-docker version v6.0.2 (the same error happened in v5.0.0 as well)
- AWS instances both master and agent
- Master OS: CentOS Linux release 7.7.1908 (Core)
- Agent OS: CentOS Stream release 9
Additional Context
Please note that there is docker installed on the agent.
Seems to be a duplicate of https://github.com/puppetlabs/puppetlabs-docker/issues/886.