Skip to content

Deploy with Docker

  • Install and start Docker Engine on Linux or Docker Desktop on macOS/Windows.
  • Verify that docker version and docker compose version succeed.
  • 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:

Terminal window
curl -fsSL https://downloads.tdengine.com/apex/latest/install.sh | bash -s -- -m docker

The 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:

Terminal window
curl -fsSL https://downloads.tdengine.com/apex/latest/install.sh | bash -s -- -m docker

Docker mode refuses to run as root, including through sudo.

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.

Go to apex_home/docker/. On first use, copy .env.example to .env and adjust it as needed:

Terminal window
cd ~/.apex/docker
cp .env.example .env
./tdengine.sh start
./tdengine.sh stop

Use 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.