---
title: Run with Docker
project: SuperAdmin
version: 9.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/superadmin/9-0/guides/install-docker/
updated: 2026-11-19T08:00:35.592Z
---

# Run with Docker

> Build a SuperAdmin image from the source code and run it in a container.

The source code of SuperAdmin has a file `dockerfile.alpine` that builds an image with Alpine Linux, Node.js 16, Nginx and SuperAdmin. In the container, Nginx serves SuperAdmin on port 80, as on a server.

A container is a good place to try SuperAdmin. Everything you add, apps, users and settings, lives inside the container: the image defines no volume, so removing the container removes your data.

## Build and run

**1.** Get the source code:

```bash
git clone https://github.com/totaljs/superadmin.git
cd superadmin
```

**2.** Build the image:

```bash
docker build -f dockerfile.alpine -t superadmin .
```

**3.** Start a container:

```bash
docker run -d --name superadmin -p 127.0.0.1:8080:80 superadmin
```

**4.** Open `http://localhost:8080/` and [sign in for the first time](../first-sign-in/).

Use `dockerfile.alpine`. The other file, `dockerfile`, does not build.

## What is different in the container

- The image configures SuperAdmin for the domain `localhost`, so open it as `localhost`, not as `127.0.0.1`.
- The **Storage** values in the system panel stay empty.
- To see the output of SuperAdmin, run `docker logs superadmin`.
