Skip to content

Instantly share code, notes, and snippets.

@viceice
Created July 28, 2020 12:40
Show Gist options
  • Save viceice/b1a3b6a462988cf53c49a247b4d090da to your computer and use it in GitHub Desktop.
Save viceice/b1a3b6a462988cf53c49a247b4d090da to your computer and use it in GitHub Desktop.
2020/07/28 14:38:16 [INFO] backend/local: apply calling Apply
2020/07/28 14:38:16 [INFO] terraform: building graph: GraphTypeApply
2020/07/28 14:38:16 [DEBUG] Resource state not found for node "docker_image.test", instance docker_image.test
2020/07/28 14:38:16 [DEBUG] Resource state not found for node "docker_container.test", instance docker_container.test
2020/07/28 14:38:16 [DEBUG] ProviderTransformer: "docker_container.test" (*terraform.NodeApplyableResourceInstance) needs provider.docker
2020/07/28 14:38:16 [DEBUG] ProviderTransformer: "docker_container.test (prepare state)" (*terraform.NodeApplyableResource) needs provider.docker
2020/07/28 14:38:16 [DEBUG] ProviderTransformer: "docker_image.test (prepare state)" (*terraform.NodeApplyableResource) needs provider.docker
2020/07/28 14:38:16 [DEBUG] ProviderTransformer: "docker_image.test" (*terraform.NodeApplyableResourceInstance) needs provider.docker
2020/07/28 14:38:16 [DEBUG] ReferenceTransformer: "docker_image.test (prepare state)" references: []
2020/07/28 14:38:16 [DEBUG] ReferenceTransformer: "docker_image.test" references: []
2020/07/28 14:38:16 [DEBUG] ReferenceTransformer: "docker_container.test" references: []
2020/07/28 14:38:16 [DEBUG] ReferenceTransformer: "provider.docker" references: []
2020/07/28 14:38:16 [DEBUG] ReferenceTransformer: "docker_container.test (prepare state)" references: []
2020/07/28 14:38:16 [DEBUG] Starting graph walk: walkApply
2020-07-28T14:38:16.207+0200 [INFO] plugin: configuring client automatic mTLS
2020-07-28T14:38:16.224+0200 [DEBUG] plugin: starting plugin: path=C:\Users\kriese\projects\gitlab\jobs\test\.terraform\plugins\windows_amd64\terraform-provider-docker_v2.7.1_x4.exe args=[C:\Users\kriese\projects\gitlab\jobs\test\.terraform\plugins\windows_amd64\terraform-provider-docker_v2.7.1_x4.exe]
2020-07-28T14:38:16.225+0200 [DEBUG] plugin: plugin started: path=C:\Users\kriese\projects\gitlab\jobs\test\.terraform\plugins\windows_amd64\terraform-provider-docker_v2.7.1_x4.exe pid=37060
2020-07-28T14:38:16.225+0200 [DEBUG] plugin: waiting for RPC address: path=C:\Users\kriese\projects\gitlab\jobs\test\.terraform\plugins\windows_amd64\terraform-provider-docker_v2.7.1_x4.exe
2020-07-28T14:38:16.262+0200 [INFO] plugin.terraform-provider-docker_v2.7.1_x4.exe: configuring server automatic mTLS: timestamp=2020-07-28T14:38:16.239+0200
2020-07-28T14:38:16.278+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: plugin address: network=tcp address=127.0.0.1:10000 timestamp=2020-07-28T14:38:16.278+0200
2020-07-28T14:38:16.278+0200 [DEBUG] plugin: using plugin: version=5
2020-07-28T14:38:16.312+0200 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2020/07/28 14:38:17 [WARN] Provider "registry.terraform.io/-/docker" produced an invalid plan for docker_container.test, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .attach: planned value cty.False does not match config value cty.NullVal(cty.Bool)
- .logs: planned value cty.False does not match config value cty.NullVal(cty.Bool)
- .read_only: planned value cty.False does not match config value cty.NullVal(cty.Bool)
- .must_run: planned value cty.True does not match config value cty.NullVal(cty.Bool)
- .rm: planned value cty.False does not match config value cty.NullVal(cty.Bool)
dock - .labels: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
er_2020/07/28 14:38:17 [DEBUG] docker_container.test: applying the planned Create change
container.test: Creating...2020-07-28T14:38:17.349+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:17 [DEBUG] setting computed for "env" from ComputedKeys
2020-07-28T14:38:17.349+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:17 [DEBUG] setting computed for "log_opts" from ComputedKeys
2020-07-28T14:38:17.349+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:17 [DEBUG] setting computed for "entrypoint" from ComputedKeys
2020-07-28T14:38:17.349+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:17 [DEBUG] setting computed for "command" from ComputedKeys
2020-07-28T14:38:17.349+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:17 [DEBUG] setting computed for "network_data" from ComputedKeys
2020-07-28T14:38:17.349+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:17 [DEBUG] setting computed for "labels" from ComputedKeys
2020-07-28T14:38:19.227+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:19 [DEBUG] pulled image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4: {"status":"Pulling from library/nginx","id":"sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4"}
2020-07-28T14:38:19.227+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: {"status":"Digest: sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4"}
2020-07-28T14:38:19.227+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: {"status":"Status: Image is up to date for nginx@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4"}
2020/07/28 14:38:19 [DEBUG] docker_container.test: apply errored, but we're indicating that via the Error pointer rather than returning it: Unable to create container with image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4
2020/07/28 14:38:19 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: Unable to create container with image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4
2020/07/28 14:38:19 [ERROR] <root>: eval: *terraform.EvalSequence, err: Unable to create container with image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4
2020/07/28 14:38:19 [DEBUG] docker_image.test: applying the planned Create change
docker_image.test: Creating...
2020-07-28T14:38:21.062+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: 2020/07/28 14:38:21 [DEBUG] pulled image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4: {"status":"Pulling from library/nginx","id":"sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4"}
2020-07-28T14:38:21.062+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: {"status":"Digest: sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4"}
2020-07-28T14:38:21.062+0200 [DEBUG] plugin.terraform-provider-docker_v2.7.1_x4.exe: {"status":"Status: Image is up to date for nginx@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4"}
2020/07/28 14:38:21 [DEBUG] docker_image.test: apply errored, but we're indicating that via the Error pointer rather than returning it: Unable to read Docker image into resource: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4
2020/07/28 14:38:21 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: Unable to read Docker image into resource: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4
2020/07/28 14:38:21 [ERROR] <root>: eval: *terraform.EvalSequence, err: Unable to read Docker image into resource: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4
Error: Unable to read Docker image into resource: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4
on main.tf line 12, in resource "docker_image" "test":
12: resource "docker_image" "test" {
Error: Unable to create container with image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d4: Unable to find or pull image nginx:1.18.0-alpine@sha256:29dc24ed982665eb88598e0129e4ec88c2049fafc63125a4a640dd67529dc6d42020-07-28T14:38:21.216+0200 [DEBUG] plugin: plugin process exited: path=C:\Users\kriese\projects\gitlab\jobs\test\.terraform\plugins\windows_amd64\terraform-provider-docker_v2.7.1_x4.exe pid=37060
2020-07-28T14:38:21.216+0200 [DEBUG] plugin: plugin exited
on main.tf line 16, in resource "docker_container" "test":
16: resource "docker_container" "test" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment