1

While running the following command for docker compose docker -compose -f mongo.yaml up I am getting the below mentioned error: unable to resolve docker endpoint: context "ompose" does not exist

1
  • 2
    In your command, is there a space in docker -compose? There shouldn't be, docker-compose is a single hyphenated word. Commented Mar 13, 2021 at 19:48

1 Answer 1

3

There seems to be an error with the command you're trying to run.

docker-compose is a separate binary. It should be invoked as docker-compose -f mongo.yaml Note the spacing. Docker compose is a separate tool and does not ship with Docker. Please install it if you have not already. Link to official docs: https://docs.docker.com/compose/install/

Update: Recent versions of docker for some operating systems include docker-compose. Please check the official documentation (link above) for more information.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.