-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose: restart not respected #9579
Comments
Self-assigning |
A friendly reminder that this issue had no activity for 30 days. |
@mheon did you ever get a chance to look at this? |
Just enough to realize it wasn't nearly as simple as I initially thought 😄 I'll take another look this week |
Is it in scope of this or a separate item that containers are also not automatically restarted when host restarts despite |
A friendly reminder that this issue had no activity for 30 days. |
@rhatdan thanks. I will add it to the closed issues in the PR. |
@rhatdan I think the Compat API is not respecting restart policy, so it might not be fixed after that. |
@mheon how can I test that? Should I run podman system service using tcp protocol? And what API request should I send? |
At this point, I think the reproducer will require a Docker-compose setup - have Compose talking to |
I will check this out tonight and update this issue. Thanks @mheon |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The
restart
attribute of services is not respected in docker-compose filesSteps to reproduce the issue:
build container:
sudo podman build -t fail .
create
docker-compose.yaml
with following contents:sudo docker-compose up
Describe the results you received:
running with docker-compose on podman, the failing container is not restarted:
Describe the results you expected:
running with "real" docker, the failing container is restarted again and again (as requested by
restart: always
)Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: