# LikeC4 Docker

import { PackageManagers } from 'starlight-package-managers';

LikeC4 Docker image is a self-contained environment for running LikeC4 commands and can be used as a drop-in replacement for `likec4` CLI.  
It is hosted in [GitHub Container Registry](https://github.com/likec4/likec4/pkgs/container/likec4) and [Docker Hub](https://hub.docker.com/r/likec4/likec4) and includes:

- Node.js (22.x)
- Graphviz (built from sources of the [latest release](https://gitlab.com/graphviz/graphviz/-/releases))
- Playwright (latest)
- LikeC4 CLI (latest)

You can find the [Dockerfile](https://github.com/likec4/likec4/blob/main/Dockerfile) in the repository.


<Tabs>
  <Tab label='Docker HUB'>
  ```sh copy title="Run any CLI command"
  # Example: Help for export command
  docker run --rm -t likec4/likec4 export png -h
  ```
  </Tab>
  <Tab label='GitHub Container Registry'>
  ```sh copy title="Run any CLI command"
  # Example: Help for export command
  docker run --rm -t ghcr.io/likec4/likec4 export png -h
  ```
  </Tab>
</Tabs>

## Usage

To work with the container you need to mount the folder with LikeC4 sources to `/data` directory  
(it is the default working directory, but you can change it and use any other you prefer).

### Start local web server

```sh copy title="Start local web server"