Skip to content
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

DBUS API for Containerz.StopContainer #179

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

hdwhdw
Copy link
Contributor

@hdwhdw hdwhdw commented Nov 5, 2024

DBUS API for Containerz.StopContainer

@hdwhdw hdwhdw marked this pull request as ready for review November 5, 2024 21:00
MOD_NAME = "docker_service"


class DockerService(host_service.HostModule):
Copy link
Contributor

@qiluo-msft qiluo-msft Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DockerService

Could you reuse the code inside the SystemdService class? #Closed

Copy link
Contributor Author

@hdwhdw hdwhdw Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do that. But eventually we still need a docker service for upgrade because even if we can stop the old container using systemd, launching new container with new image:tag still requires a docker run command (correct me if I am wrong) which still requires this docker service.

If that's so we might as well let this relatively simple code in and build on top of it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with docker service vs systemd service. I feel there is value in ALLOWED_SERVICES. Could you reuse that array or implemnet a similar ALLOWED_CONTAINERS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@hdwhdw hdwhdw requested a review from qiluo-msft November 22, 2024 21:18
@qiluo-msft qiluo-msft merged commit 89aead2 into sonic-net:master Nov 22, 2024
5 checks passed
@hdwhdw hdwhdw deleted the stop_container branch December 11, 2024 03:03
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.

2 participants