mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-21 23:29:59 -05:00
11 lines
218 B
Terraform
11 lines
218 B
Terraform
|
|
# Start a container
|
||
|
|
resource "docker_container" "ubuntu" {
|
||
|
|
name = "foo"
|
||
|
|
image = docker_image.ubuntu.latest
|
||
|
|
}
|
||
|
|
|
||
|
|
# Find the latest Ubuntu precise image.
|
||
|
|
resource "docker_image" "ubuntu" {
|
||
|
|
name = "ubuntu:precise"
|
||
|
|
}
|