Skip to content

Instantly share code, notes, and snippets.

@jefferai
Created February 17, 2015 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jefferai/67c79bf55e423c23167e to your computer and use it in GitHub Desktop.
Save jefferai/67c79bf55e423c23167e to your computer and use it in GitHub Desktop.
$ terraform apply
docker_container.example: Creating...
active: "" => "0"
command.#: "" => "4"
command.0: "" => "nc"
command.1: "" => "-l"
command.2: "" => "-u"
command.3: "" => "-p 82"
computed_command.#: "" => "<computed>"
computed_dns.#: "" => "<computed>"
computed_domainname: "" => "<computed>"
computed_env.#: "" => "<computed>"
computed_hostname: "" => "<computed>"
computed_image: "" => "<computed>"
computed_persistent_storage.#: "" => "<computed>"
computed_ports.#: "" => "<computed>"
computed_publish_all_ports: "" => "0"
dns.#: "" => "2"
dns.909960769: "" => "5.6.7.8"
dns.961314917: "" => "1.2.3.4"
freshest_image: "" => "<computed>"
hostname: "" => "example"
image: "" => "ubuntu:14.04"
name: "" => "example"
publish_all_ports: "" => "0"
update_image: "" => "0"
docker_container.example: Creation complete
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.
State path: terraform.tfstate
$ terraform apply
docker_container.example: Refreshing state... (ID: 300da4799f297efdc8b8c2da74f398097f3abef7a07920b5cc41bd62ee194a14)
docker_container.example: Destroying...
docker_container.example: Destruction complete
docker_container.example: Creating...
active: "" => "0"
command.#: "" => "4"
command.0: "" => "nc"
command.1: "" => "-l"
command.2: "" => "-u"
command.3: "" => "-p 82"
computed_command.#: "" => "<computed>"
computed_dns.#: "" => "<computed>"
computed_domainname: "" => "<computed>"
computed_env.#: "" => "<computed>"
computed_hostname: "" => "<computed>"
computed_image: "" => "<computed>"
computed_persistent_storage.#: "" => "<computed>"
computed_ports.#: "" => "<computed>"
computed_publish_all_ports: "" => "0"
dns.#: "" => "2"
dns.909960769: "" => "5.6.7.8"
dns.961314917: "" => "1.2.3.4"
freshest_image: "" => "<computed>"
hostname: "" => "example"
image: "" => "ubuntu:14.04"
name: "" => "example"
publish_all_ports: "" => "0"
update_image: "" => "0"
docker_container.example: Creation complete
Apply complete! Resources: 1 added, 0 changed, 1 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.
State path: terraform.tfstate
State file:
{
"version": 1,
"serial": 2,
"modules": [
{
"path": [
"root"
],
"outputs": {},
"resources": {
"docker_container.example": {
"type": "docker_container",
"primary": {
"id": "cc68775620f3198e34162fd653050092efa8faca621e93f66e2a45ddb8791886",
"attributes": {
"active": "true",
"command.#": "4",
"command.0": "nc",
"command.1": "-l",
"command.2": "-u",
"command.3": "-p 82",
"computed_command.#": "4",
"computed_command.0": "nc",
"computed_command.1": "-l",
"computed_command.2": "-u",
"computed_command.3": "-p 82",
"computed_dns.#": "2",
"computed_dns.909960769": "5.6.7.8",
"computed_dns.961314917": "1.2.3.4",
"computed_domainname": "",
"computed_env.#": "1",
"computed_env.1827816": "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"computed_hostname": "example",
"computed_image": "5ba9dab47459d81c0037ca3836a368a4f8ce5050505ce89720e1fb8839ea048a",
"computed_persistent_storage.#": "0",
"computed_ports.#": "0",
"computed_publish_all_ports": "false",
"dns.#": "2",
"dns.909960769": "5.6.7.8",
"dns.961314917": "1.2.3.4",
"freshest_image": "5ba9dab47459d81c0037ca3836a368a4f8ce5050505ce89720e1fb8839ea048a",
"hostname": "example",
"id": "cc68775620f3198e34162fd653050092efa8faca621e93f66e2a45ddb8791886",
"image": "ubuntu:14.04",
"name": "example",
"publish_all_ports": "false",
"update_image": "false"
}
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment