Add container restart command to stop and start one or more containers - #2218
Open
Ronitsabhaya75 wants to merge 1 commit into
Open
Add container restart command to stop and start one or more containers#2218Ronitsabhaya75 wants to merge 1 commit into
container restart command to stop and start one or more containers#2218Ronitsabhaya75 wants to merge 1 commit into
Conversation
Contributor
|
@Ronitsabhaya75 for any non-trivial change (this changes the CLI shape), please add an issue if one doesn't yet exist, and include in the PR description "Closes #issue-id." Thanks! |
Contributor
Author
|
@jglogan I have created an issue for this :) sorry I forgot to do that first. I was working with container for long time for my school project and it was kind of annoying yk to stop and start instead of restarting so I was working on this restart function for CLI. I have created request feature and this pr closes #2219 that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
closes #2219
Motivation and Context
Right now there's no way to restart a container without running
container stopand thencontainer startseparately. Every other container tool (Docker, Podman, nerdctl) has arestartcommand, so it felt like a natural thing to add. I kept hitting this myself when iterating on containers and wanted a single command to do it.Testing
Built the
ContainerCommandstarget locally and confirmed it compiles cleanly. Added acontainer restartsection tocommand-reference.mdwith usage and examples.