Docker-compose not starting on raspberry pi

I have a raspberry pi 3 b+ running Ubuntu server 20.04 lts. I connect via vscode.

Docker is installed on the pi, and running “docker ps”.

However when I try to run docker-compose (docker-compose up -d), it just returns to command prompt immediately and has not attempted to start the service.

I also tried “docker-compose” by itself expected to get a warning about missing arguments, but this also just returns to the command prompt.

The docker-compose.yml file is this:

version: “3.9”
services:
ros2:
build: .
# restart: no
ports:
- “3332:3332”
volumes:
- /home/cubie/ros:/home/ros
- /home/cubie/cubie-1:/ros2
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
tty: true

Does anyone have some advice on how to nail this problem down?

Thanks,
Dave

It is compiling now. The instruction given had a hyphen between docker and compose, I’ve removed the hyphen and it is now building