Skip to content
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

Error: Failed to apply catalog: No such file or directory - docker #904

Open
roy-themachine opened this issue Mar 13, 2023 · 1 comment
Open

Comments

@roy-themachine
Copy link

roy-themachine commented Mar 13, 2023

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.

@Hufschmidt
Copy link

Seems to be a duplicate of #886.

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

3 participants