# ed machines docker restart

> ed machines docker restart in the Edith ed command line reference. Restarts a container.

- Canonical URL: https://getedith.pro/docs/cli/machines-docker/restart
- Updated: 2026-12-02

Restarts a container.

```
ed machines docker restart [--json] <machine> <container>...
```

## Arguments

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<machine>` | machine name, ssh alias, id, or any unambiguous prefix | required | Which machine to act on. |
| `<container>...` | one or more container names or ids | at least one required | Which containers to restart. Docker is given all of them in one call. |

## Options

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit JSON on stdout instead of the one-line confirmation. |
| `--help`, `-h` | flag | off | Print the help for this command on stdout and exit 0. |

## `--json` shape

```json
{
  "action": "restart",
  "containers": [
    "noveum-local-db-postgres-1"
  ],
  "machine": "Devbox"
}
```

## Examples

```
ed machines devbox docker restart noveum-local-db-postgres-1
ed machines devbox docker restart open-webui --json
```

## Behaviour notes

Runs `docker restart -t 10 <container>`, the same ten second grace period `stop`
uses, under the same 120 second ceiling. A container that takes longer than the
ceiling to come back leaves `ed` reporting a failure while docker carries on;
check with `ed machines docker ps` rather than assuming the restart was lost.

## Where to go next

- [`ed machines docker`](https://getedith.pro/docs/cli/machines-docker), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
