mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-24 00:29:46 -05:00
15 lines
282 B
HCL
15 lines
282 B
HCL
provider "docker" {
|
|
version = "~> 2.19.0"
|
|
host = "unix:///var/run/docker.sock"
|
|
}
|
|
|
|
# Pulls the image
|
|
resource "docker_image" "ubuntu" {
|
|
name = "ubuntu:latest"
|
|
}
|
|
|
|
# Create a container
|
|
resource "docker_container" "foo" {
|
|
image = docker_image.ubuntu.latest
|
|
name = "foo"
|
|
}
|