> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/docker/start-container.md).

# Start Container

Starts one Docker container by running `docker start <container>` over SSH. The host is the one defined in the SSH connection you choose, not the devices the workflow collected.

### Before you begin

* An SSH connection created and tested in **Action Center** > **Settings** > **SSH Configurations** (see [Action Center Settings](broken://pages/8645d54fd58ef6f7646f22c9c200fb35464d74c5)). The job runs on that connection's host.
* Docker installed on the SSH host, and an SSH user that can run `docker`.
* The container ID or name must contain only letters, digits, underscore, dot and hyphen. Anything else fails with **Invalid container name**.
* If you turn on Use Sudo, the SSH user needs a passwordless (`NOPASSWD`) sudoers rule. Leave it off when the SSH user is in the `docker` group.

### Settings

| Setting        | Type      | Required | Default | Description                                                                                                                                        |
| -------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| SSH connection | Selection | Yes      | None    | The SSH connection to run on, chosen by name from the connections you created in **Action Center** > **Settings** > **SSH Configurations**.        |
| Container ID   | Text      | Yes      | None    | ID or name of the container, for example `my-app`. Letters, digits, `_`, `.` and `-` only.                                                         |
| Use Sudo       | Checkbox  | No       | Off     | Run the command through sudo (`sudo -n`). Leave off when the SSH user is in the `docker` group. Requires a passwordless (`NOPASSWD`) sudoers rule. |

### How it works

The job runs once per workflow run, not once per asset. It opens the chosen SSH connection and runs `docker start <Container ID>`. With Use Sudo on, the command is run as `sudo -n docker start <Container ID>`. The collected assets are not used.

If the SSH connection no longer exists, the job fails with **SSH settings not found**. If the command exits with a non-zero status, the job fails with the SSH connection name, the exit status and the error output.

The command waits up to the Timeout of the SSH connection (0 means the product default). The connection status in the SSH list is updated after each run.

On success the job passes the assets it received on to the next node unchanged.

### Example

```
SSH connection: docker-host-01
Container ID:   my-app
Use Sudo:       Off
```

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/88fe89fc332ace5c985ad28303945853058fdaf7">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values and SSH connections for jobs.</td><td><a href="broken://pages/8645d54fd58ef6f7646f22c9c200fb35464d74c5">Broken link</a></td></tr><tr><td><strong>Stop Container</strong></td><td>Run docker stop.</td><td><a href="broken://pages/ac1cd7028d5083ff362de2db260747d08e8521a8">Broken link</a></td></tr><tr><td><strong>Restart Container</strong></td><td>Run docker restart.</td><td><a href="broken://pages/69bcf48f2b4e2ad54e627764bdd47053c029458f">Broken link</a></td></tr></tbody></table>
