Skip to content

Signal Parameter to Container Stop and Restart #3322

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Khushiyant
Copy link
Contributor

Closes #3304

This PR aims to provide support for signal that is sent to the container in stop and restart according to API v1.42.

Adds following changes:

  • signal argument to restart and stop in docker/api/container.py
  • signal docstring in docker/models/containers.py
  • unit tests in tests/unit/models_containers_test.py

Refer API version here

Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
@Khushiyant Khushiyant force-pushed the signal-stop-restart branch from e50725f to bb2ae90 Compare March 21, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

container.stop and container.restart are missing the signal argument
1 participant