Terraform version 1.5 out of date

I am unable to work with Define infrastructure with Terraform resources topics, as its giving error as Terraform version out of date, pls update to new version and install required plugin
Terraform version out of date

Is this is a lab or playground? Do you have a link please?

I am using AWS Terraform Playground and its giving error as Terraform version 1.5 out of Date and Docker is also not installed when i am practising below link.
Import Terraform configuration | Terraform | HashiCorp Developer. pls install latest version of terraform and install docker also .

Terraform 1.5 is sufficient for that lab according to its description.

Also if you need docker on the environment, simply install it.

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io 

systemctl start docker

And voila! Note you cannot use port 8080 for the container as the lab is alredy using that port.

❯ docker run --name hashicorp-learn --detach --publish "0.0.0.0:8090:80" nginx:latest
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
b0a0cf830b12: Pull complete 
8ddb1e6cdf34: Pull complete 
5252b206aac2: Pull complete 
988b92d96970: Pull complete 
7102627a7a6e: Pull complete 
93295add984d: Pull complete 
ebde0aa1d1aa: Pull complete 
Digest: sha256:ed6d2c43c8fbcd3eaa44c9dab6d94cb346234476230dc1681227aa72d07181ee
Status: Downloaded newer image for nginx:latest
f7e48daa70bde5e74d4765ea2733d2671e8e85624fd8f4632a2af05ea39e8476

root in ~/code on ☁️  (us-east-1) took 7s 
❯ git clone https://github.com/hashicorp/learn-terraform-import.git
Cloning into 'learn-terraform-import'...
remote: Enumerating objects: 132, done.
remote: Counting objects: 100% (59/59), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 132 (delta 31), reused 36 (delta 22), pack-reused 73
Receiving objects: 100% (132/132), 41.60 KiB | 1.60 MiB/s, done.
Resolving deltas: 100% (56/56), done.

root in ~/code on ☁️  (us-east-1) 
❯ cd learn-terraform-import

root in learn-terraform-import on  master via 💠 default on ☁️  (us-east-1) 
❯ terraform init

Initializing the backend...

Initializing provider plugins...
- Reusing previous version of kreuzwerker/docker from the dependency lock file
- Installing kreuzwerker/docker v3.0.2...
- Installed kreuzwerker/docker v3.0.2 (self-signed, key ID BD080C4571C6104C)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html

Terraform has made some changes to the provider dependency selections recorded
in the .terraform.lock.hcl file. Review those changes and commit them to your
version control system if they represent changes you intended to make.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

root in learn-terraform-import on  master [!] via 💠 default on ☁️  (us-east-1)