# Install SA1 with Docker :id=top

------

> _Doc Ver:_ 1.4  
_App Ver:_ 2.6.6.53  
_Date:_ 09/13/2026

------

This is the **SA1** Docker stack: the container runs only `sa-di` + `sa-web`.  
It is not SA2 device / server / wind Edition, and not the old `docker-sa-xxx.tar.xz` / `docker_pull.sh` packs.

Chooser: http://192.168.3.9/sa1/install/get.html · http://sc.casstk.com/sa1/install/get.html

## 1. One-liner

```bash
# Linux / macOS (Docker must already be installed)
curl -fsSL http://192.168.3.9/sa1/install/docker-install | bash
```

```powershell
irm http://192.168.3.9/sa1/install/docker-install.ps1 | iex
```

If host port 80 is already used by a field `sa-di`, add `--port-prefix 1` (Web on 10080).

Modbus TCP **1502** is published (`SA1_MODBUS_PORT`). The slave stays **off** until Addon → Modbus Configure. Protocol: [Modbus TCP slave](modbus_tcp_slave.md).

## 2. Pull a pre-built image from the registry

Skip local `docker build` and pull the published image:

```bash
curl -fsSL http://192.168.3.9/sa1/install/docker-install | bash -s -- --pull
```

```powershell
irm http://192.168.3.9/sa1/install/docker-install.ps1 | iex -Pull
```

Image: `192.168.3.8:5050/sa1/sa1/sa1-device:2.6.6.10` (and `:latest`). BusyBox armv7l field boards use the native `linux_arm` package, not this Docker desktop flow.

## 3. Upgrade

```bash
curl -fsSL http://192.168.3.9/sa1/install/upgrade | bash
```

`upgrade` reads `~/.local/share/sa1/runtime.json`. When `mode=docker`, it upgrades the Docker stack. If the first install used `--pull`, the upgrade also pulls the new image instead of rebuilding locally.

## 4. Offline

Download `sa1-v2.6.*-linux_*_docker.tar.gz` (or the Windows / darwin twin), then:

```bash
bash docker-install --offline -y --local ./sa1-v2.6.6.10-linux_amd64_docker.tar.gz
```

## 5. Old procedure

`http://112.74.80.60/sa/docker/`, `docker_pull.sh`, and `docker-sa-xxx.tar.xz` are old SA&FT management-server packs. **Do not** use them to install 2.6.6.10.

## Change log

|Version|Date|Description|
|:--:|----|----------|
|1.4|09/04/2026|Added `--pull` to fetch a pre-built registry image|
|1.3|09/03/2026|Switched to SA1 docker-install (sa-di + sa-web)|
|1.2|08/04/2023|Old docker-sa pack (withdrawn)|
