Manage Docker container settings
- Last UpdatedJul 07, 2025
- 1 minute read
- PI System
- Adapter for BACnet 1.2
- Adapters
Change port number
To use a different port other than 5590, you can specify a portnum variable on the docker run command line.
For example, to start the adapter using port 6000 instead of 5590, use the following command:
docker run -d -e portnum=6000 --network host <adapter>adapter
This command accesses the REST API with port 6000 instead of port 5590. The following curl command returns the configuration for the container:
curl http://localhost:6000/api/v1/configuration
Alternatively, use the following edgecmd command:
edgecmd -port 6000 get application
Remove REST access
If you remove the --network host option from the docker run command, REST access is not possible from outside the container. This may be of value where you want to host an application in the same container as the adapter but do not want to have external REST access enabled.
Upgrade
To upgrade a Docker container with persistent storage to the latest version of BACnet, you should follow the process above for creating a new container image. Then, when you run the container, use the same persistent storage that you previously used. This allows you to carry over all of the configuration data to the upgraded container.