Docker with Puppet: DNS allocation to the Docker Daemon

0 votes
I just started exploring docker using Puppet and i am stuck at this point where i don't know how to allocate a DNS server to the docker daemon? can somebody show me a way out? Thanks.
Aug 16 in Puppet by Dipika
17 views

1 answer to this question.

0 votes

Hey @Dipika, to allocate a dns server to the Docker daemon, add the following code to the manifest file:

class { 'docker':
  dns => '8.8.8.8',
}

Adding this snippet to your manifest will allocate a dns server to the Docker Daemon!

answered Aug 16 by Sirajul
• 26,100 points

Related Questions In Puppet

0 votes
0 answers

Puppet+Docker: Rebuild an image with respect to changes in dockerfile

I am building a docker image via ...READ MORE

Aug 13 in Puppet by Sam
• 1,660 points
13 views
0 votes
1 answer

Docker with Puppet: How do i run the following command "docker build -t ubuntu /tmp/ubuntu_image" using puppet code?

 Hey @Liana, Including the docker_dir parameter is equivalent to ...READ MORE

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

Docker with puppet: Can I validate the puppetlabs/docker module?

Yes, you can! This module is compliant with ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 26,100 points
10 views
0 votes
1 answer
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,540 points
157 views
0 votes
1 answer

What's the need to integrate docker with puppet?

There are 3 core use cases for integrating docker with Puppet or with ...READ MORE

answered Aug 13 in Puppet by Sirajul
• 26,100 points
17 views
0 votes
0 answers