[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hyphen in a command
From: |
Davide Brini |
Subject: |
Re: hyphen in a command |
Date: |
Tue, 24 Jan 2023 17:15:08 +0100 |
On Tue, 24 Jan 2023 05:17:19 -1000, Jeffrey Martin <dogshed@gmail.com>
wrote:
> When I try to run this executable with a hyphen it doesn't like it and
> tries to run docker instead of docker-compose. It runs it fine when I put
> in the full path.
> Is this a bug or a feature?
> Thanks
>
> dogshed@Haili:~$ docker-compose up
> docker: 'compose' is not a docker command.
> See 'docker --help'
I bet someone "cleverly" aliased "docker-compose" to "docker compose", and
you're running this on a system without the compose plugin for docker
installed.
This is OT, but the correct way to migrate is to use
https://github.com/docker/compose-switch.
--
D.