Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835431 - app-containers/docker-compose:2: docker-compose executable no longer in PATH
Summary: app-containers/docker-compose:2: docker-compose executable no longer in PATH
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
: 866109 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-03-16 14:36 UTC by John Helmert III
Modified: 2022-08-23 18:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-03-16 14:36:40 UTC
~ $ qlist docker-compose
/usr/share/doc/docker-compose-2.3.3-r1/README.md.bz2
/usr/libexec/docker/cli-plugins/docker-compose

Can this be symlinked into /usr/bin?
Comment 1 William Hubbs gentoo-dev 2022-03-17 14:45:32 UTC
It doesn't belong in the path. It is run as a subcommand of docker,
e.g.:

docker compose foo

instead of:

docker-compose foo

Let me know if you have any more questions.

Thanks,

William
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2022-03-17 15:36:15 UTC
I still think it is better to just symlink it given how cheap it is and how many workflows you just destroyed by not providing it.
Comment 3 William Hubbs gentoo-dev 2022-03-17 16:11:15 UTC
docker-compose 2.x is slotted, so it doesn't remove docker-compose 1.x
when it is installed, so nothing is destroyed as you said above. If you
keep running "docker-compose" you get docker-compose 1.x
"docker compose" with a space instead of a "-" gives you docker-compose 2.x.

In short, you don't start using docker-compose 2.x unless you change the
command you are running.
Comment 4 Michiel Hazelhof 2022-06-03 09:43:04 UTC
(In reply to William Hubbs from comment #3)
> docker-compose 2.x is slotted, so it doesn't remove docker-compose 1.x
> when it is installed, so nothing is destroyed as you said above. If you
> keep running "docker-compose" you get docker-compose 1.x
> "docker compose" with a space instead of a "-" gives you docker-compose 2.x.
> 
> In short, you don't start using docker-compose 2.x unless you change the
> command you are running.

There are a lot of workflows that are indeed "destroyed", plenty of scripts that just call docker-compose and work with both 2.x and 1.x.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-23 18:38:04 UTC
*** Bug 866109 has been marked as a duplicate of this bug. ***