Skip to content

Support YAML keys "post_start" (and "pre_stop") from Docker Compose #1303

@dboehmer

Description

@dboehmer

Is your feature request related to a problem? Please describe.
I have a docker-compose.yml setup and some commands need to be run after containers have started. Since version 2.30.0 Docker Compose offers post_start to run commands after container startup.

Spec: https://docs.docker.com/compose/how-tos/lifecycle/#post-start-hooks

Describe the solution you'd like
Implement post_start (and probably also pre_stop) like Docker Compose does.

Describe alternatives you've considered
For me this is a blocker to switch from Docker to Podman in this setup although I generally prefer Podman.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions