Docker with Puppet How do i run the following command docker build -t ubuntu tmp ubuntu image using puppet code

0 votes

i want to build an image, i am using puppetlabs/docker from forge. How do i write the  command "docker build -t ubuntu /tmp/ubuntu_image" using puppet DSL? or is it the same command in puppet too?

Aug 16, 2019 in Puppet by Liana
1,003 views

1 answer to this question.

0 votes

 Hey @Liana, Including the docker_dir parameter is equivalent to running the docker build -t ubuntu /tmp/ubuntu_image command. 

To add or build an image from a dockerfile that includes the docker_dir parameter, add the following code to the manifest file:

docker::image { 'ubuntu':
  docker_dir => '/tmp/ubuntu_image'
}

This should do the same!

answered Aug 16, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

+2 votes
1 answer

How do I trigger the puppet agent on slave to install docker using jenkins?

Hey @Mercy, you will have to write ...READ MORE

answered Aug 17, 2020 in Puppet by Karan
• 19,610 points
1,273 views
0 votes
1 answer

How do I sign all the certificates together - Puppet on Ubuntu

Hey @Aryaa, use the following command to ...READ MORE

answered Feb 21, 2019 in Puppet by Adi
705 views
0 votes
1 answer

Docker with Puppet: How do I install Docker EE on a Debian System?

Docker provides a enterprise addition of the ...READ MORE

answered Aug 16, 2019 in Puppet by Sirajul
• 59,230 points
650 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
914 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,020 points
2,715 views
0 votes
0 answers

How do i set up docker with puppet?

I want to use puppetlabs/docker module in ...READ MORE

Aug 13, 2019 in Puppet by Karan
• 19,610 points
2,611 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