Feature or enhancement request details
Currently there's no way to restart a container with a single command you have to run container stop followed by container start. Every major container tool (Docker, Podman, nerdctl) provides a restart command, and it would be nice to have it here too.
The command would:
- Accept one or more container IDs, or
--all to restart everything
- Support
--time and --signal options for the stop phase (same as container stop)
- Stop the container if it's running, then start it back up in detached mode
- Simply start already-stopped containers (matching Docker's behavior)
This is a CLI-shape change since it adds a new subcommand under the Container group.
Code of Conduct
Feature or enhancement request details
Currently there's no way to restart a container with a single command you have to run
container stopfollowed bycontainer start. Every major container tool (Docker, Podman, nerdctl) provides arestartcommand, and it would be nice to have it here too.The command would:
--allto restart everything--timeand--signaloptions for the stop phase (same ascontainer stop)This is a CLI-shape change since it adds a new subcommand under the
Containergroup.Code of Conduct