Overview #
NiralOS EDGE communicates with Docker Engine through the Docker Remote API.
This guide explains how to enable the Docker Remote API with or without TLS on Linux and Windows.
Recommendation
Use TLS in production environments. Non-TLS mode should only be used on trusted internal networks or for testing purposes.
Enable Docker Remote API Without TLS #
Linux #
Create the Docker systemd override directory.
sudo mkdir -p /etc/systemd/system/docker.service.d
Create an override configuration.
sudo nano /etc/systemd/system/docker.service.d/override.conf
Add the following configuration.
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd \
    -H fd:// \
    -H tcp://0.0.0.0:2375
Reload systemd and restart Docker.
sudo systemctl daemon-reload
sudo systemctl restart docker
Verify the API.
curl http://:2375/version
Windows (Docker Desktop) #
- Open Docker Desktop.Â
- Navigate to Settings → General.Â
- Enable Expose daemon on tcp://localhost:2375 without TLS.Â
- Click Apply & Restart.Â
Note
By default, Docker Desktop exposes the API only on localhost. Additional Windows Firewall and networking configuration is required for remote access.
Enable Docker Remote API with TLS #
For production deployments, configure Docker Engine with TLS.
Generate the following certificates:
- Certificate Authority (CA)Â
- Server CertificateÂ
- Server Private KeyÂ
Configure Docker Engine to start with:
- –tlsverify
- –tlscacert=<CA Certificate>
- –tlscert=<Server Certificate>
- –tlskey=<Server Private Key>
- -H tcp://0.0.0.0:2376
Restart Docker Engine.
Recommended Ports #
| Mode | Port |
|---|---|
| Non-TLS | 2375 |
| TLS | 2376 |
Troubleshooting #
Unable to Connect #
Verify:
- Docker Engine is running.Â
- The API port is reachable.Â
- Windows Firewall or Linux firewall allows inbound connections.Â
- The correct IP address and port are being used.
TLS Connection Failed #
Verify:
- The uploaded CA certificate matches the server certificate.Â
- Docker Engine is configured with –tlsverify.Â
- The client is connecting to the correct port (2376).