Skip to content
Snippets Groups Projects

docker-registry.pp

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Alexander Preben Roaas
    Edited
    docker-registry.pp 422 B
    # docker-registry.pp
    # This manifest installs and configures docker registry on port 5000
    
    # Install the Docker engine on the host
    include 'docker'
    
    # Pull the Docker Registry image
    docker::image { 'registry':}
    
    # Deploy a docker registry container and expose it to port 5000
    docker::run { 'regestri':
      pull_on_start => true,
      image         => 'registry',
      ports         => ['5000:5000'],
      expose        => ['5000'],
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment