Skip to content

compose down doesn't support named containers (or custom named containers) #38

Done

Description

@rtoohil

If you use container_name: with a custom name in your compose file, compose up properly handles that, but compose down does not, and defaults to its internal naming, will fail to stop the container, and will not throw an error, because it eats the error.

PR incoming.

Activity

  1. added a commit that references this issue on Jan 27, 2026
    b9c07d0
  2. malclear commented on Feb 6, 2026

    @malclear

    I'm seeing waitUntilServiceIsRunning throw a "Timed out waiting for container" when running up and a custom container name is specified. The method, and two others, reconstructs the container name from projectName and serviceName. It does not respect the configured container name.
    Also, the "Parameters" description in the function's comments is not accurate.

  3. Mcrich23 commented on Feb 6, 2026

    @Mcrich23
    Owner

    Thank you @malclear. I'm not at my computer at the moment. Could you please send the description for the parameters function?

    Happy to take a look and get that fixed!

  4. added 2 commits that reference this issue on Jun 21, 2026
    75f5033
    2fefe9f
  5. Mcrich23 commented on Sep 9, 2026

    @Mcrich23
    Owner

    Custom names are now included in the shared container resolution, and the earlier startup and shutdown fixes should address this report. Can you try the original example against the current version if you're still using this setup? Interpolated container names are separate work in #102.

  6. Mcrich23 commented on Nov 25, 2026

    @Mcrich23
    Owner

    Custom container_name values are now used by shared container resolution and by down, with a dynamic regression covering custom-name shutdown. Variable expansion in container names also landed in #179. Closing the naming issue as resolved; broader teardown and error-handling improvements remain separate work in #192.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions