Puppet+Docker : Configure Authentication to a private repository

0 votes
Can somebody help me with the process required for authenticating a private registry? Also how can I pull an image from the docker store?
Aug 14 in Puppet by Kriti
19 views

1 answer to this question.

0 votes
  • When a server is not specified, images are pushed and pulled from index.docker.io

  • To qualify your image name, create a private repository without authentication.

  • To configure authentication for a private registry, add the following code to the manifest file, depending on what version of Docker you are running. 

  • If you are using Docker V1.10 or earlier, specify the docker version in the manifest file:

docker::registry { 'example.docker.io:5000':
  username => 'user',
  password => 'secret',
  email    => 'user@example.com',
  version  => '<docker_version>'
}
  • To pull images from the docker store, use the following as the registry definition with your own docker hub credentials.

docker::registry {'https://index.docker.io/v1/':
  username => 'username',
  password => 'password',
}
  • If using Docker V1.11 or later, the docker login email flag has been deprecated.

answered Aug 14 by Sirajul
• 31,980 points

Related Questions In Puppet

0 votes
1 answer

Puppet+Docker: How do i configure my docker container to use a NFS volume through a Hiera config file?

If using Hiera, configure the docker::volumes class in the ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 31,980 points
28 views
0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12 in Puppet by Jason
155 views
0 votes
1 answer

Puppet+Docker: How to Update/Remove a docker service?

Update a docker service: To update the service, add ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 31,980 points
36 views
0 votes
1 answer

Puppet+Docker: How do i configure a swarm if i am using windows server 2016.

There are a few considerations to be ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 31,980 points
21 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,900 points
195 views
0 votes
0 answers
0 votes
1 answer