π³ Sky-view as a Docker container
This section provides instructions for deploying and running the software as a Docker container.
Building from sourceβ
SkyView uses the full impleo/go-sensor-pipeline-base:2.0.0 SDK to compile
the server and native helpers, and the matching base-slim:2.0.0 runtime.
SRT 1.5.7 (OpenSSL and GnuTLS) and GStreamer 1.28.8 come from these bases.
Every executable is compiled inside its target-platform container; host binaries
are not used. The frontend and bundled help are built with local Node/npm first.
make docker # Local host-platform image: skyview:latest
make docker-multiarch # amd64 + ARM64 OCI archive in .cache/docker/
make docker-jetson # Local ARM64 image: skyview:jetson
Buildx defaults to DOCKER_BUILDER=sensor-native, with running native amd64
and ARM64 nodes (the latter can use Jetson10 over SSH). Select another builder
with DOCKER_BUILDER=.... The build checks that all requested platforms are
available before compiling. DOCKER_PLATFORMS=linux/arm64 selects a single
generic ARM64 build with make docker. A cross-platform local image loads into
the invoking computer's Docker daemon; run it on a machine of that architecture.
The generic ARM64 image supports software media processing. amd64 retains the
Intel/AMD and desktop NVIDIA media dependencies and checks.
Jetson uses both published bases tagged
2.0.0-jetpack4.6-l4t32.6.1, configured through JETSON_BASE_VERSION.
It requires a native ARM64 builder, and runs only on a matching JetPack 4.6 /
L4T R32.6.1 host with the NVIDIA container runtime. It uses the isolated modern
GStreamer SDK and host-injected Jetson hardware plugins. Do not use the generic
ARM64 image for Jetson hardware acceleration or apply the desktop NVIDIA Compose
overlay to Jetson. Run the Jetson image with --runtime=nvidia --network=host
and the usual persistent /data and /host-media mounts.
The existing docker-compose.jetson.yml overlay defaults to skyview:jetson;
set SKYVIEW_JETSON_IMAGE to select a published JetPack release tag.
Publishing is explicit and requires registry authentication, GitHub access to private ImpleoTV modules, and the existing STView/libmisb release secrets:
make docker-multiarch-push VERSION=vX.Y.Z # Version + latest, both platforms
make docker-jetson-push VERSION=vX.Y.Z # X.Y.Z-jetpack4.6-l4t32.6.1 only
Jetson tags stay outside the standard ARM64 manifest and never update latest.
Existing docker-tag / docker-push targets retain their single-platform
behavior; use docker-multiarch-push to publish a multi-platform release.
BuildKit mounts credentials as secrets. Image checks cover SRT versions and
library origins, GStreamer plugins, ELF architectures, shared-library resolution,
helper protocols, and software Flywheel encode/decode. These build checks do not
replace hardware tests on the deployment host.
Prerequisitesβ
Ensure Docker is installed on your Linux system. Refer to the Docker documentation for installation instructions specific to your Linux distribution.
If you prefer managing your Docker deployment with Docker Compose, ensure that Docker Compose is also installed.
On Windows, you can use a WSL2 or VM to manage your Docker environment.
Configure the Linux Docker hostβ
Before starting SkyView on native Linux (including Jetson), configure the host's UDP receive/send buffer limits. From a matching source checkout, run:
bash scripts/setup-docker-host.sh --dry-run
sudo bash scripts/setup-docker-host.sh
The release installation archive includes the same standalone script at its root:
sudo bash ./setup-docker-host.sh
The script sets net.core.rmem_max and net.core.wmem_max to at least
4194304 bytes (4 MiB), preserves larger current or previously configured
SkyView limits, and writes /etc/sysctl.d/90-sky-view-udp.conf for boot-time
application. It applies and verifies these two limits immediately; rerunning it
is safe. Existing comments and unrelated settings in that file are retained.
It requires Bash and sysctl (usually supplied by procps). Debian package
installation already installs and applies this sysctl configuration.
Verify the active limits:
sysctl net.core.rmem_max net.core.wmem_max
Run the script on the machine running Docker Engine, outside the application or development container. With a remote Docker context, run it on the remote Linux host. The host-network Linux/Jetson deployment shares these limits with SkyView; the app requests socket buffers and reports insufficient limits. Setup does not restart Docker, SkyView, or streams. Existing sockets keep their previous buffer sizes; new sockets can use the raised limits. Later sysctl configuration files can override these values at boot, so resolve conflicting host settings if needed.
This script targets native Linux Docker Engine. Running it in a Windows WSL shell does not establish persistent settings for Docker Desktop's managed Linux VM; verify effective limits inside that deployment separately.
Running Docker on a machine that is not connected to the internetβ
If you are not connected to the internet, you can download the Docker image from the Docker Hub and store it locally.
More information on Docker offline
Dockerβ
docker run -it --rm\
--device=/dev/dri \
--cap-add=PERFMON \
--group-add=video \
--group-add="${SKY_VIEW_RENDER_GID:-110}" \
--network host \
-e SKY_VIEW_SERVER_ADDR=":8100" \
-e SKY_VIEW_DB_PATH="/data/skyview.db" \
-e SKY_VIEW_USERS_DB_PATH="/data/skyview-users.db" \
-e SKY_VIEW_STREAM_EVENTS_DB_PATH="/data/skyview-stream-events.db" \
-e SKY_VIEW_LOG_PATH="/data/sky-view.log" \
-e SKY_VIEW_LOG_MAX_SIZE_MB="10" \
-e SKY_VIEW_LOG_MAX_BACKUPS="5" \
-e SKY_VIEW_LOG_MAX_AGE_DAYS="0" \
-v sky-view-data:/data \
-v "${SKY_VIEW_HOST_ID_PATH:-/sys/class/dmi/id/product_uuid}:/var/lib/dbus/machine-id:ro" \
-v "${SKY_VIEW_HOST_ID_PATH:-/sys/class/dmi/id/product_uuid}:/etc/machine-id:ro" \
impleo/sky-view:1.25.1
--device=/dev/dri,--group-add=video, and the numeric render group: Provide access to Intel/AMD DRM devices for hardware acceleration and GPU monitoring. SetSKY_VIEW_RENDER_GIDto the numeric GID reported bygetent group renderon the host.--cap-add=PERFMON: Allowsintel_gpu_topto read the Intel i915/xe performance counters without granting broad container privileges.- --network=host: Uses the hostβs network, allowing the container to listen on all network interfaces of the host. Also required for udp multicast support.
- -v sky-view-data:/data: Mounts the database volume inside the container.
- The two machine-ID mounts bind Node Info to the server's DMI hardware UUID, keeping the license stable across container updates but preventing an application/data copy from carrying the license to another server. If
/sys/class/dmi/id/product_uuidis unavailable, setSKY_VIEW_HOST_ID_PATH=/etc/machine-idto bind the license to that host OS installation instead.
The image contains the Linux Flywheel worker and starts its private Xvfb display automatically. NVIDIA deployments use the headless CUDA compositor and NVENC; Intel/AMD deployments use the compatible EGL/DRM hardware path. With Prefer hardware acceleration enabled, the worker requires a working GPU media path and reports failures instead of silently falling back to CPU processing.
The image includes Intel and AMD monitoring utilities and also reads the kernel's DRM per-process counters. For NVIDIA, install NVIDIA Container Toolkit on the host and add --gpus all to docker run; the host runtime injects the matching driver libraries and nvidia-smi into the image. The image requests the utility, video, graphics, and compute driver capabilities. See NVIDIA GPU monitoring on Linux and Docker for the complete host and container setup.
After running this command, the sky-view service will be accessible at http://localhost:8100.
Docker Composeβ
Use Docker Compose 2.24.4 or newer. The configuration is split into:
| File | Purpose |
|---|---|
docker-compose.yml | Shared services, application settings, media and persistent data. |
docker-compose.linux.yml | Native Linux Docker Engine: host networking, hardware identity and DRM permissions. |
docker-compose.docker-desktop.yml | Linux containers on Windows Docker Desktop/WSL2: published ports and Windows identity file. Unrelated to the native SkyView/Wails app. |
docker-compose.nvidia.yml | NVIDIA device reservation and headless CUDA settings shared by both platforms. |
docker-compose.jetson.yml | JetPack NVIDIA runtime, host networking, host identity, and CSI socket. Use with the base only. |
Native Linuxβ
docker compose -f docker-compose.yml -f docker-compose.linux.yml up -d
# NVIDIA:
docker compose -f docker-compose.yml -f docker-compose.linux.yml -f docker-compose.nvidia.yml up -d
Linux uses host networking for UDP multicast. Intel/AMD deployments pass /dev/dri
and the video/render groups; NVIDIA deployments use the NVIDIA Container Toolkit
reservation and remove the DRM-specific device/group/PERFMON settings.
Complete Linux Docker host setup before starting Compose so UDP limits are applied immediately and persist across reboots.
Linux identity defaults to /sys/class/dmi/id/product_uuid. Set
SKY_VIEW_HOST_ID_PATH=/etc/machine-id on hosts without DMI. The Debian service
uses the Linux overlay by default, including with older environment files.
Docker Desktop on Windows (WSL2 backend)β
Create the identity file once in the installation directory with PowerShell:
$identity = (Get-CimInstance Win32_ComputerSystemProduct).UUID.ToLowerInvariant()
[IO.File]::WriteAllText((Join-Path (Get-Location) 'host-machine-id'), "$identity`n")
docker compose -f docker-compose.yml -f docker-compose.docker-desktop.yml -f docker-compose.nvidia.yml up -d
Keep the identity file across updates. Mounts require it to exist and will not
create a directory in its place. For existing installations, retain the previous
identity file and data volume. NVIDIA requires a compatible Windows driver and
WSL2 GPU runtime. The image must include the /dev/dxg application/SDK fix;
older images may require an update. Use the same corrected image on native Linux.
Open http://localhost:8100. Published ports are TCP 8100 and UDP 50000β50100
for WebRTC. Override SKY_VIEW_HTTP_PORT, SKY_VIEW_WEBRTC_UDP_MIN, and
SKY_VIEW_WEBRTC_UDP_MAX as needed. For remote browsers set
SKY_VIEW_WEBRTC_PUBLIC_IP to the Windows host's reachable IP, and update the
corresponding SkyView settings if persisted settings override defaults. Add
explicit UDP/SRT/RTSP port mappings for configured streams. Multicast remains
limited on Docker Desktop.
Enable the optional reverse proxy with --profile proxy. Analytics uses the
timescaledb Compose hostname on Docker Desktop.
Jetson Nano: install a published JetPack releaseβ
Use a matching JetPack 4.6 / L4T R32.6.1 host with NVIDIA Container Runtime.
The Compose deployment was verified on Docker Engine 20.10.21 with Compose
2.24.7. The general Linux Docker 24+ recommendation does not require replacing
JetPack's working Docker/runtime packages. docker compose version must report
2.24.4 or newer; the legacy docker-compose command is not sufficient.
If Compose is missing, install an ARM64 CLI plugin from an official Docker
Compose release. For the tested version, download docker-compose-linux-aarch64
and its .sha256 file from the
v2.24.7 release, verify
with sha256sum -c docker-compose-linux-aarch64.sha256, and install the executable
as ~/.docker/cli-plugins/docker-compose. Run Compose as that same user. Transfer
the verified binary from another computer if the Jetson cannot download it.
From the extracted installation files (or a matching source checkout):
sudo mkdir -p /opt/skyview
sudo chown "$(id -u):$(id -g)" /opt/skyview
cp docker-compose.yml docker-compose.jetson.yml /opt/skyview/
mkdir -p /opt/skyview/caddy /opt/skyview/config \
/opt/skyview/data/caddy/pki/authorities/local /opt/skyview/host-media
cp caddy/Caddyfile /opt/skyview/caddy/
cd /opt/skyview
cat > .env <<'EOF'
COMPOSE_PROJECT_NAME=skyview
COMPOSE_FILE=docker-compose.yml:docker-compose.jetson.yml
SKYVIEW_JETSON_IMAGE=impleo/sky-view:1.25.1-jetpack4.6-l4t32.6.1
SKY_VIEW_HOST_ID_PATH=/etc/machine-id
SKY_VIEW_HOST_MEDIA=/opt/skyview/host-media
SKY_VIEW_SERVER_ADDR=:8100
SKY_VIEW_ANALYTICS_ENABLED=false
COMPOSE_PROFILES=
SKY_VIEW_PWA_VAPID_PUBLIC_KEY=
SKY_VIEW_PWA_VAPID_PRIVATE_KEY=
SKY_VIEW_PWA_VAPID_CONTACT=mailto:admin@example.com
EOF
chmod 600 .env
docker compose config --quiet
docker compose config --images
docker compose pull
docker compose up -d
docker compose ps
Use the published JetPack tag, not generic -arm64 or latest. Older installation
archives may omit the Jetson overlay; obtain it from the corresponding source
checkout and check that it contains both read-only machine-ID mounts and the
Caddy host-network configuration shown by docker compose config. Do not add the
Linux or desktop NVIDIA overlays. Keep /etc/machine-id stable across upgrades.
The /tmp/argus_socket socket must exist before startup; check
systemctl status nvargus-daemon if it is missing. The overlay also binds this
socket for CSI camera access.
Run the Linux Docker host setup script on the
Jetson before starting the containers. The server listens on port 8100; Caddy uses
ports 80/443 and proxies localhost and skyview.local. Remote clients must
resolve skyview.local to the Jetson's IP and trust Caddy's local CA for HTTPS.
For a basic connectivity check, open http://JETSON_IP:8100.
Application databases live in the skyview_data named volume, Host Media in
/opt/skyview/host-media, and Caddy state under /opt/skyview/data and config.
Both services use restart: unless-stopped and return after Docker/host restart.
Stream startup is controlled separately by each stream's Auto start setting.
To migrate existing databases, stop the old server, back up /data, then copy
into the new volume before starting Compose. Preserve the previous host identity
for an existing licensed installation. Never copy live BoltDB files or use
docker compose down -v for an upgrade.
If registry access fails, use another computer to pull linux/arm64 versions
of every image listed by docker compose config --images, transfer with
docker save / docker load, then run docker compose up -d --pull never.
See offline Docker.
Check http://JETSON_IP:8100/api/version, the embedded /help/, and
docker compose logs --tail=50. Verify the native helpers and hardware probe:
docker compose exec sky-view /app/skyview-jpeg-extractor --preview-protocol-version
docker compose exec sky-view /app/skyview-rtsp-server --protocol-version
docker compose exec -e DISPLAY=:99 sky-view /app/skyview-flywheel-worker --probe --json
Both helper versions must be 1. A successful hardware probe establishes
availability; run a hardware Pattern channel and check advancing frames and the
selected nvv4l2h264enc/nvv4l2h265enc encoder to verify actual encoding. Pattern
uses CPU generation followed by VIC/NVMM conversion; Flywheel has the separate
Jetson CPU composition bridge.
Persist the selection and upgradeβ
Set COMPOSE_FILE in .env, then run docker compose up -d:
# Native Linux, NVIDIA:
COMPOSE_FILE=docker-compose.yml:docker-compose.linux.yml:docker-compose.nvidia.yml
# Windows Docker Desktop, NVIDIA (semicolon separator):
COMPOSE_FILE=docker-compose.yml;docker-compose.docker-desktop.yml;docker-compose.nvidia.yml
Choose exactly one platform overlay. Add it to older COMPOSE_FILE selections
and explicit -f commands when upgrading. The shared base alone has no host
network or hardware identity. All relative mounts resolve against the base file's
directory. Review docker compose config before applying changes. Keep the
existing project name and persistent volumes; do not use down -v to update.
Optional Analyticsβ
TimescaleDB starts with the analytics profile. Enable only when wanted:
SKY_VIEW_ANALYTICS_ENABLED=true
COMPOSE_PROFILES=analytics
See NVIDIA verification and offline Docker for additional deployment details.
Embedded manualβ
Open Help in SkyView or visit /help/ on the same server. The Docusaurus manual, screenshots and local search index ship inside the server binary and Docker image; they do not need an external documentation server.