-
Notifications
You must be signed in to change notification settings - Fork 2
Adding Restart and Stop #71
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
Conversation
…ifecycle - Introduced StopContainer RPC in EdgeContainerService to stop running containers. - Added ContainerCommand with a Stop subcommand to facilitate stopping containers via CLI. - Enhanced ControlCommand to support stop operations and added restart policy options for container execution. - Updated DockerCLI to include stop functionality for Docker containers. - Modified RunContainerRequestHandler to handle stopping containers and manage their state effectively.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
The thing is I'm not sure if I'm on the right track. @Joannis should I delete DockerCLI? Since we aren't using Docker?
|
@zamderax I'd like to keep DockerCLI around, at least for now. It's also not the difficult part of this. I don't know enough about NerdCTL to make a call there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works!
@mihai-chiorean this can be reviewed as a whole now |
# Conflicts: # Package.resolved # Sources/EdgeAgent/Services/AgentConfigService.swift
Maps
--restart=unless-stopped
and--restart=no
and--restart=on-failure:${number}
toDockerCLI
Note
debug
has--restart-no
Solves #52