<!-- Generated from the canonical OpenPost public page. Do not edit this build artifact. -->

Title: Try it with Docker run
Description: A one-line throwaway test of the published image.
Canonical: https://docs.openpo.st/self-hosting/docker-run
Source: [https://docs.openpo.st/self-hosting/docker-run](https://docs.openpo.st/self-hosting/docker-run)

# Try it with Docker run

Use `docker run` for a local trial. Use [Docker Compose](https://docs.openpo.st/self-hosting) for a lasting installation so its configuration can be reviewed, backed up, and updated as one file.

## Try it

Create `.env` with the URLs and secrets from the [Compose setup](https://docs.openpo.st/self-hosting#install-with-docker-compose), then run the published `linux/amd64` image:

```sh
docker volume create openpost_data
docker run -d --platform linux/amd64 --name openpost --restart unless-stopped \
  -p 8080:8080 --mount source=openpost_data,target=/data --env-file .env \
  -e OPENPOST_DATABASE_PATH=/data/db/openpost.db \
  -e OPENPOST_MEDIA_PATH=/data/media \
  -e OPENPOST_MEDIA_URL=http://localhost:8080/media \
  ghcr.io/getopenpost/openpost:latest
```

Open `http://localhost:8080`, create the first account, and check `http://localhost:8080/api/v1/ready` for `"status":"ready"` and `"database":"ok"`.

## Make it permanent

Move to [Docker Compose](https://docs.openpo.st/self-hosting) before connecting social accounts. Keep the same secrets, attach the existing `openpost_data` volume if you need the trial data, and replace the local URLs with the final HTTPS origin. Then configure [provider integrations](https://docs.openpo.st/self-hosting/integrations) and [backups](https://docs.openpo.st/self-hosting/maintenance).
