Issue with cdktf: Install cdktf and Run a Quick Start Demo

I just ran this tutorial and got the following error trying to run cdktf destroy

⠇ planning typescript-docker...
[2022-01-05T16:56:50.761] [ERROR] default - ╷
│ Error: Saved plan does not match the given state
│ 
│ The given plan file can not be applied because it was created from a
│ different state lineage.
╵


╷
│ Error: Saved plan does not match the given state
│ 
│ The given plan file can not be applied because it was created from a
│ different state lineage.
╵

Here are the tool versions I’m using:

terraform 1.1.2
nodejs 16.2.0
yarn 1.22.17

I got past it by downgrading terraform to v1.0.0, but then got this error running cdktf destroy

⠦ Destroying Stack: typescript-docker
Resources
 ✔ DOCKER_CONTAINER     nginxContainer      docker_container.nginxContainer
 ⠋ DOCKER_IMAGE         nginxImage          docker_image.nginxImage

Summary: 1 destroyed.
[2022-01-05T17:00:13.195] [ERROR] default - ╷
│ Error: Unable to remove Docker image: Error response from daemon: conflict: unable to delete eeb9db34b331 (cannot be forced) - image is being used by running container d63628aabbe9
│ 
│ 
╵

Thanks for reporting this.
Terraform 1.1.3 should fix this, but the cdktf team is also working on a fix. Take a look here for more information.

Thank you @jsteinich !