docker_image.nginx: Refreshing state... [id=sha256:eea7b3dcba7ee47c0d16a60cc85d2b977d166be3960541991f3e6294d795ed24nginx]docker_container.nginx: Refreshing state... [id=2d14c09db09e288f3b266091018c9209e957cf94a44b59e0bdcb0a28e4e6b7e4]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy
Terraform will perform the following actions:
# docker_container.nginx will be destroyed - resource "docker_container" "nginx" { - attach = false -> null - command = [ - "nginx", - "-g", - "daemon off;", ] -> null - container_read_refresh_timeout_milliseconds = 15000 -> null - cpu_shares = 0 -> null - dns = [] -> null - dns_opts = [] -> null - dns_search = [] -> null - entrypoint = [ - "/docker-entrypoint.sh", ] -> null - env = [] -> null - group_add = [] -> null - hostname = "2d14c09db09e" -> null - id = "2d14c09db09e288f3b266091018c9209e957cf94a44b59e0bdcb0a28e4e6b7e4" -> null - image = "sha256:eea7b3dcba7ee47c0d16a60cc85d2b977d166be3960541991f3e6294d795ed24" -> null - init = false -> null - ipc_mode = "private" -> null - log_driver = "json-file" -> null - log_opts = {} -> null - logs = false -> null - max_retry_count = 0 -> null - memory = 0 -> null - memory_swap = 0 -> null - must_run = true -> null - name = "tutorial" -> null - network_data = [ - { - gateway = "172.17.0.1" - global_ipv6_address = "" - global_ipv6_prefix_length = 0 - ip_address = "172.17.0.3" - ip_prefix_length = 16 - ipv6_gateway = "" - mac_address = "02:42:ac:11:00:03" - network_name = "bridge" }, ] -> null - network_mode = "default" -> null - privileged = false -> null - publish_all_ports = false -> null - read_only = false -> null - remove_volumes = true -> null - restart = "no" -> null - rm = false -> null - runtime = "runc" -> null - security_opts = [] -> null - shm_size = 64 -> null - start = true -> null - stdin_open = false -> null - stop_signal = "SIGQUIT" -> null - stop_timeout = 0 -> null - storage_opts = {} -> null - sysctls = {} -> null - tmpfs = {} -> null - tty = false -> null - wait = false -> null - wait_timeout = 60 -> null
- ports { - external = 8000 -> null - internal = 80 -> null - ip = "0.0.0.0" -> null - protocol = "tcp" -> null } }
# docker_image.nginx will be destroyed - resource "docker_image" "nginx" { - id = "sha256:eea7b3dcba7ee47c0d16a60cc85d2b977d166be3960541991f3e6294d795ed24nginx" -> null - image_id = "sha256:eea7b3dcba7ee47c0d16a60cc85d2b977d166be3960541991f3e6294d795ed24" -> null - keep_locally = false -> null - name = "nginx" -> null - repo_digest = "nginx@sha256:104c7c5c54f2685f0f46f3be607ce60da7085da3eaa5ad22d3d9f01594295e9c" -> null }
Plan: 0 to add, 0 to change, 2 to destroy.
Do you really want to destroy all resources? Terraform will destroy all your managed infrastructure, as shown above. There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
docker_container.nginx: Destroying... [id=2d14c09db09e288f3b266091018c9209e957cf94a44b59e0bdcb0a28e4e6b7e4]docker_container.nginx: Destruction complete after 0sdocker_image.nginx: Destroying... [id=sha256:eea7b3dcba7ee47c0d16a60cc85d2b977d166be3960541991f3e6294d795ed24nginx]docker_image.nginx: Destruction complete after 1s
Destroy complete! Resources: 2 destroyed.