containers / containers/podman-compose

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

Open
#1,303 3 comments 17 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.