Deploy with Docker
Prerequisites
Section titled “Prerequisites”- Install and start Docker Engine on Linux or Docker Desktop on macOS/Windows.
- Verify that
docker versionanddocker compose versionsucceed. - Reserve at least 6 GiB of available memory for the TDengine container, plus disk space for data, logs, and image layers.
- Check that required TCP/UDP ports are available or that existing Docker/IDE listeners are acceptable.
Linux Docker mode requires root:
curl -fsSL https://downloads.tdengine.com/apex/latest/install.sh | bash -s -- -m dockerThe installer places the Apex CLI and Docker assets, then deploys automatically.
macOS supports Docker mode only; bare-metal Host installation is not supported. Start Docker Desktop and run as a regular user:
curl -fsSL https://downloads.tdengine.com/apex/latest/install.sh | bash -s -- -m dockerDocker mode refuses to run as root, including through sudo.
Windows
Section titled “Windows”Start Docker Desktop, then choose Docker in TDengineSetup-x64.exe, or use standalone install.ps1 -Mode docker. Standalone Windows Docker mode does not require administrator privileges.
Running the installer again in Docker mode updates the Apex binary and deployment assets for the current version. Compare the old .env with the new .env.example, merge configuration, and preserve existing persistent volumes.
Start and stop services
Section titled “Start and stop services”Go to apex_home/docker/. On first use, copy .env.example to .env and adjust it as needed:
cd ~/.apex/dockercp .env.example .env./tdengine.sh start./tdengine.sh stopUse tdengine.ps1 on Windows. Prefer the Apex control scripts over direct docker compose up, stop, or down commands so Apex can manage deployment mode, health checks, and volumes.