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 in Puppet by Liana
21 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 by Sirajul
• 25,700 points

Related Questions In Puppet

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 in Puppet by Adi
50 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 in Puppet by Sirajul
• 25,700 points
19 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
• 25,700 points
18 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
156 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 in Puppet by Karan
• 1,980 points
21 views