Docker Community Forums

Share and learn in the Docker community.

Docker -compose up -d unknown shorthand flag: 'c' in -compose

Environment Docker version 18.09.1, build 4c52b901c6cb
docker-compose version 1.24.0, build 0aa5906

Dear Community,
the command
docker -compose up -d
shows error
unknown shorthand flag: ‘c’ in -compose
See ‘docker --help’.

the “docker-compose.yml” is within the folder the command has been started in and the following content:
version: ‘3’
services:
odoo:
image: odoo: 11
restart: always
ports: - “8069: 8069”
links:
- db
volumes:
- ./extra-addons:/mnt/extra-addons
db:
image: postgres: 9.4
restart: always
environment:
- POSTGRES_USER = odoo
- POSTGRES_PASSWORD = odoo

I looked up the net but so far I could only find similar errors that seems to have no connection.

Thank you for your suggestions.

It was a typing error… I added a space in front of the -compose by accident. Sorry.