Skip to content

Add container restart command to stop and start one or more containers - #2218

Open
Ronitsabhaya75 wants to merge 1 commit into
apple:mainfrom
Ronitsabhaya75:container-restart
Open

Add container restart command to stop and start one or more containers#2218
Ronitsabhaya75 wants to merge 1 commit into
apple:mainfrom
Ronitsabhaya75:container-restart

Conversation

@Ronitsabhaya75

@Ronitsabhaya75 Ronitsabhaya75 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

closes #2219

Motivation and Context

Right now there's no way to restart a container without running container stop and then container start separately. Every other container tool (Docker, Podman, nerdctl) has a restart command, 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

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Built the ContainerCommands target locally and confirmed it compiles cleanly. Added a container restart section to command-reference.md with usage and examples.

@jglogan

jglogan commented Aug 30, 2026

Copy link
Copy Markdown
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!

@Ronitsabhaya75

Copy link
Copy Markdown
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.

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.

[Request]: Add container restart command

2 participants