Issue in Docker Compose Lab

Hello Sir,
I’m unable to complete the Docker compose lab especially Question 5. I tried the below steps. Could you please help me out?

docker run redis:alpine --name redis
Unable to find image ‘redis:alpine’ locally
alpine: Pulling from library/redis
a0d0a0d46f8b: Pull complete
a04b0375051e: Pull complete
cdc2bb0f9590: Pull complete
0aa2a8e7bd65: Pull complete
f64034a16b58: Pull complete
7b9178a22893: Pull complete
Digest: sha256:58132ff3162cf9ecc8e2042c77b2ec46f6024c35e83bda3cabde76437406f8ac
Status: Downloaded newer image for redis:alpine

*** FATAL CONFIG FILE ERROR (Redis 6.2.6) ***
Reading the configuration file, at line 2

‘name “redis”’
Bad directive or wrong number of arguments
$ docker rmi redis
Untagged: redis:latest
Untagged: redis@sha256:eff56acc5fc7b909183da93236ba09d3b8cb7d6db31d5b25e9a46dac9b5e699b
Deleted: sha256:ccee4cdf984f11952441cbab30146dae792c8d9fb668e762c78a49e7db858082
Deleted: sha256:a4f3d68d06ee9aec1862695818528930f0e889f5c892da8be4c06759dc2e8f86
Deleted: sha256:02c22c39334cefb22054330d3be804a3046286d7f0a47d83f5f25be13f4e635e
Deleted: sha256:2d01997f1c500789fc369f5440ea810257641af6fbb1d4eaeb9558d94ea8879d
Deleted: sha256:f448a5cc1367794bb2f15d887438c8b43f2324ee3523f5d95c15997685cc816d
Deleted: sha256:e481db33c0c73ee7de5ecda57c21fcfb7eeeff7d22fcc4ad0166b0bf64a63a32
$ docker run --name redis -d redis:alpine
8195444cf302cb58deb4cfe3c13d37562084f7dae87f5304c6aa5e7946725a96
$ docker run --name clickcounter --link redis -d -p 8085:5000 kodekloud/click-counter
Unable to find image ‘kodekloud/click-counter:latest’ locally
latest: Pulling from kodekloud/click-counter
540db60ca938: Already exists
a7ad1a75a999: Pull complete
37ce6546d5dd: Pull complete
ec9e91bed5a2: Pull complete
767433e10bb0: Pull complete
156f0b0493cb: Pull complete
3fe82d8a2401: Pull complete
4a41f7c94204: Pull complete
473063430a4f: Pull complete
452c68a16ccd: Pull complete
Digest: sha256:530e4532a718e8f5cbda05844a6c0638ebe8898fa4c4307ee6afbdd5d1f213db
Status: Downloaded newer image for kodekloud/click-counter:latest
f892141b9a14a1c2d3a5bda38625d59c1d413b3ec0b5b72a59e6a77f612c158b
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f892141b9a14 kodekloud/click-counter “flask run” 2 minutes ago Up 2 minutes 0.0.0.0:8085->5000/tcp clickcounter
8195444cf302 redis:alpine “docker-entrypoint.s…” 4 minutes ago Up 4 minutes 6379/tcp redis
4604bcf07fff redis:alpine “docker-entrypoint.s…” 5 minutes ago Exited (1) 5 minutes ago objective_neumann
$ docker stop 4604bcf07fff 8195444cf302 f892141b9a14
4604bcf07fff
8195444cf302

f892141b9a14
$
$ docker rm 4604bcf07fff 8195444cf302 f892141b9a14
4604bcf07fff
8195444cf302
f892141b9a14
$ docker rmi redis clickcounter
Error: No such image: redis
Error: No such image: clickcounter
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
redis alpine e24d2b9deaec 3 weeks ago 32.3MB
kodekloud/click-counter latest 72e102fd1a20 5 months ago 182MB
ubuntu latest 7e0aa2d69a15 6 months ago 72.7MB
mysql latest 0627ec6901db 6 months ago 556MB
nginx alpine a64a6e03b055 6 months ago 22.6MB
alpine latest 6dbb9cc54074 6 months ago 5.61MB
nginx latest 62d49f9bab67 6 months ago 133MB
postgres latest 26c8bcd8b719 6 months ago 314MB
kodekloud/simple-webapp-mysql latest 129dd9f67367 3 years ago 96.6MB
kodekloud/simple-webapp latest c6e3cd9aae36 3 years ago 84.8MB
$ docker rmi e24d2b9deaec 72e102fd1a20
Untagged: redis:alpine
Untagged: redis@sha256:58132ff3162cf9ecc8e2042c77b2ec46f6024c35e83bda3cabde76437406f8ac
Deleted: sha256:e24d2b9deaecf3a3b3a12ac519c878e5609d2baaa2ffa529d2ca4af9fca0147f
Deleted: sha256:24da11a46c986eae1abfce2e4eb1165539bf8b9e267d523c46f5469097333464
Deleted: sha256:bf3c8e1a6c1bef6b68ca742aebfc304968d5fbafb3429394ef7816830ab6c665
Deleted: sha256:35b9d0b895b8e6be5dedbcfc4d0b207c0c84a9de050863242b7c29a525e19d38
Deleted: sha256:0e23e2ddd0297b2c4cdc0df1643bb246b3cc83a0b75c2353067f0ba5a249a533
Deleted: sha256:c354308740ce937a796fa2fde1a570125af3c9143ed806ff24c688e26d99051f
Deleted: sha256:e2eb06d8af8218cfec8210147357a68b7e13f7c485b991c288c2d01dc228bb68
Untagged: kodekloud/click-counter:latest
Untagged: kodekloud/click-counter@sha256:530e4532a718e8f5cbda05844a6c0638ebe8898fa4c4307ee6afbdd5d1f213db
Deleted: sha256:72e102fd1a2084b089ed87b19dac238ef79715f95233545c7e5449310f288025
Deleted: sha256:0a20cb4c0c4c66f6e353571c6d20e1f42d23409ad7c9b6069367ef922984698b
Deleted: sha256:7ae5464d1428caaf24511ed73e560d238567c1922b524a7ca249b1b3ba520f2d
Deleted: sha256:846d48a775e15850bdbe414b988f418c17eabfa9cf82dc12abcc5dbc240bc69f
Deleted: sha256:0c80f72024f14128c364286030514e1bc34926b738f4600da89b9dc0c7c174d6
Deleted: sha256:960f726072cdb2cc46e4df338350811e7f9a0b1e0137b7ff3fc462e4de8e4133
Deleted: sha256:02ba6db6cbc4530251a79a0e1b75c798ffc9a060de4caa46ee99bb812504f6bb
Deleted: sha256:4132e90eeed226deaf64736df21ed11e4bccfdebe0731c5a162715f7d16f9a13
Deleted: sha256:891941728f3e45ce10487e4f148ed9377ea480f8f8e4493bf4c5cc00bf282bb0
Deleted: sha256:1c278ca3257cf13913219d60798497ea4a172246fac42f383b057e05ed76c356
$ vi docker-compose.yml
$ docker-compose up -d
Creating network “root_default” with the default driver
Pulling redis (redis:alpine)…
alpine: Pulling from library/redis
a0d0a0d46f8b: Pull complete
a04b0375051e: Pull complete
cdc2bb0f9590: Pull complete
0aa2a8e7bd65: Pull complete
f64034a16b58: Pull complete
7b9178a22893: Pull complete
Digest: sha256:58132ff3162cf9ecc8e2042c77b2ec46f6024c35e83bda3cabde76437406f8ac
Status: Downloaded newer image for redis:alpine
Pulling clickcounter (kodekloud/click-counter:)…
latest: Pulling from kodekloud/click-counter
540db60ca938: Already exists
a7ad1a75a999: Pull complete
37ce6546d5dd: Pull complete
ec9e91bed5a2: Pull complete
767433e10bb0: Pull complete
156f0b0493cb: Pull complete
3fe82d8a2401: Pull complete
4a41f7c94204: Pull complete
473063430a4f: Pull complete
452c68a16ccd: Pull complete
Digest: sha256:530e4532a718e8f5cbda05844a6c0638ebe8898fa4c4307ee6afbdd5d1f213db
Status: Downloaded newer image for kodekloud/click-counter:latest
Creating root_clickcounter_1 … done
Creating root_redis_1 … done
$ vi docker-compose.yml
$ docker-compose up -d
ERROR: yaml.scanner.ScannerError: while scanning a simple key
in “./docker-compose.yml”, line 5, column 5
could not find expected ‘:’
in “./docker-compose.yml”, line 6, column 3
$ vi docker-compose.yml
$ docker-compose up -d
ERROR: yaml.parser.ParserError: while parsing a block mapping
in “./docker-compose.yml”, line 1, column 1
expected , but found ‘’
in “./docker-compose.yml”, line 2, column 2.

Yaml file
ersion: ‘3.0’
services:
redis:
image: redis:alpine
clickcounter:
image: kodekloud/click-counter
ports:
- 8085:5000

checkdockercompose

I have even tried to copy-paste the yaml file contents from the solution tab after countless tries.
I have checked everything. Container definitely runs on a correct port and is mapped to a correct port. Lab just fails saying port is not mapped correctly. Please fix this issue.