Skip to content

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

Open
@roy-themachine

Description

@roy-themachine

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions