# --container

Source: https://zshot-cli.com/reference/flags/security/container/
Markdown: https://zshot-cli.com/reference/flags/security/container/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Flags](https://zshot-cli.com/reference/flags/) › [Security](https://zshot-cli.com/reference/flags/security/)
CLI: `--container` · REST: CLI only

Sets ZShot up to run inside a container. Pass it in place of the individual switches.

| Setting | Effect |
| --- | --- |
| Sandbox | Stays on where the runtime permits it; otherwise ZShot renders without it and prints a warning. [Hardening](/reference/docker/hardening) has the seccomp profile that keeps it on under Docker. |
| Shared memory | Chromium uses a temp file instead of `/dev/shm`, which most runtimes keep small. |
| GPU | On Linux, without a render node at `/dev/dri/renderD*`, rendering falls back to software. Map one in with `--device /dev/dri`; [`--software-rendering`](/reference/flags/common/software-rendering) forces software rendering regardless. |
| License | An activation made during the run is released at exit instead of saved to the config file. |

## Licenses in Disposable Containers

Each fresh container has its own machine identifier, so it takes an activation slot. With `--container` the run activates on start and releases on exit, so the next container reuses the slot.

## Example

**CLI**

```sh
zshot -f pipeline.png --container \
  --license-key "$ZSHOT_LICENSE" \
  https://zshot-cli.com/example_assets/zrm/
```

## Related

Flags:

- [`--no-sandbox`](https://zshot-cli.com/reference/flags/security/no-sandbox/)
- [`--software-rendering`](https://zshot-cli.com/reference/flags/common/software-rendering/)
- [`--license-key`](https://zshot-cli.com/reference/flags/common/license-key/)

Topics:

- [Docker](https://zshot-cli.com/reference/docker/)
- [Hardening](https://zshot-cli.com/reference/docker/hardening/) — The seccomp profile that keeps the sandbox on

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
    - [Common](https://zshot-cli.com/reference/flags/common/)
    - [Agents](https://zshot-cli.com/reference/flags/agents/)
    - [Archive](https://zshot-cli.com/reference/flags/archive/)
    - [Browser](https://zshot-cli.com/reference/flags/browser/)
    - [Diagnostics](https://zshot-cli.com/reference/flags/diagnostics/)
    - [Document](https://zshot-cli.com/reference/flags/document/)
    - [Image](https://zshot-cli.com/reference/flags/image/)
    - [Navigator](https://zshot-cli.com/reference/flags/navigator/)
    - [Security](https://zshot-cli.com/reference/flags/security/)
      - [--adblock-rules](https://zshot-cli.com/reference/flags/security/adblock-rules/)
      - [--allow-ip-range](https://zshot-cli.com/reference/flags/security/allow-ip-range/)
      - [--allow-unsafe-ssl](https://zshot-cli.com/reference/flags/security/allow-unsafe-ssl/)
      - [--block-ip-range](https://zshot-cli.com/reference/flags/security/block-ip-range/)
      - [--block-private-ips](https://zshot-cli.com/reference/flags/security/block-private-ips/)
      - **--container**
      - [--insecure-web-mode](https://zshot-cli.com/reference/flags/security/insecure-web-mode/)
      - [--ip-blocklist](https://zshot-cli.com/reference/flags/security/ip-blocklist/)
      - [--no-sandbox](https://zshot-cli.com/reference/flags/security/no-sandbox/)
    - [Server](https://zshot-cli.com/reference/flags/server/)
    - [Video](https://zshot-cli.com/reference/flags/video/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

