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, 2019 in Puppet by Kriti
947 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, 2019 by Sirajul
• 59,230 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, 2019 in Puppet by Sirajul
• 59,230 points
734 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, 2019 in Puppet by Jason
1,329 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, 2019 in Puppet by Sirajul
• 59,230 points
498 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, 2019 in Puppet by Sirajul
• 59,230 points
601 views
+2 votes
1 answer
+2 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
• 58,090 points
2,472 views
0 votes
0 answers
0 votes
1 answer

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

docker_volume { 'nfs-volume': ensure => ...READ MORE

answered Aug 13, 2019 in Puppet by Sirajul
• 59,230 points
537 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP