3

I installed Podman Desktop app v. 1.18.1 on macOS Sequoia.

If I execute:

podman compose version

… I get this on the console:

>>>> Executing external compose provider "/usr/local/bin/docker-compose". Please see podman-compose(1) for how to disable this message. <<<<

Docker Compose version v2.36.0

I am guessing that Podman is using an implementation of Docker Compose rather than its own implementation. (Does Podman even have its own implementation of the Compose spec?)

That message seems to suggest I should call a command podman-compose. But there is no such command. Running this:

which podman-compose

… results in :

podman-compose not found

Obviously there is a podman compose command+subcommand. I used that above for version. But the message says podman-compose with a hyphen, a command that does not seem to exist.

So how do I disable that message?

3
  • 1
    Man pages for subcommands are often provided at hyphenated names. The man page for any git foo command can be found at man git-foo. Commented May 19 at 7:41
  • That message seems to suggest I should call a command podman-compose - no, it suggest that you read page 1 of the podman-compose man page. If the package is installed, you usually do that by running man 1 podman-compose. Of course, nowadays you don't actually need to have it installed, you can usually just search the internet for man podman-compose to find it. The relevant part of the man page has already been quoted in a comment in the answer. Commented May 19 at 12:44
  • @FeRD That explains part of my confusion. The message’s use of “podman‑compose” refers to the man-page-oriented hyphenated version of the command podman compose rather than the podman‑compose project proposed as another external Compose provider to replace the currently-used Docker Compose. That is an unfortunate collision in naming. Thank you for pointing it out! Commented May 20 at 19:01

1 Answer 1

11

(Does Podman even have its own implementation of the Compose spec?)

Yes, podman-compose, which is a separate software, …

But the message says podman-compose with a hyphen, a command that does not seem to exist.

… which needs to be installed separately. Don't know whether it works on Mac OS!

External Compose provider

The podman compose (without hyphen) command is Podman’s thin wrapper around any configured external Compose provider.

Currently Podman & Podman Desktop rely upon Docker Compose as an external Compose provider.

The podman-compose (notice hyphen) project is designed to be another external Compose provider, an alternative to using Docker Compose with Podman.

To switch external Compose providers, set PODMAN_COMPOSE_PROVIDER variable, or edit containers.conf. See documentation.

The console message you report does not indicate a problem. To disable the appearance of that console message, set PODMAN_COMPOSE_WARNING_LOGS variable to false, or edit containers.conf. See documentation.

1
  • 7
    Specifically, see the part of the documentation that says: "By default, podman compose will emit a warning saying that it executes an external command. This warning can be disabled by setting compose_warning_logs to false in containers.conf(5) or setting the PODMAN_COMPOSE_WARNING_LOGS environment variable to false. See the man page for containers.conf(5) for more information." Commented May 19 at 7:39

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.