16 lines
251 B
Go
16 lines
251 B
Go
|
package docker
|
||
|
|
||
|
import (
|
||
|
"github.com/mitchellh/packer/packer"
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
type DockerDriver struct {
|
||
|
Ui packer.Ui
|
||
|
}
|
||
|
|
||
|
func (d *DockerDriver) Pull(image string) error {
|
||
|
cmd := exec.Command("docker", "pull", image)
|
||
|
return runAndStream(cmd, d.Ui)
|
||
|
}
|