Runs a CoAP test server on port 5683, based on Californium plugtest server.
3.1K
This Dockerfile starts a CoAP test server (plugtest) from Californium. It will bind on CoAP default UDP port 5683.
Start the server and expose UDP port 5683. The example below uses -d option to run in detached mode and --rm to remove the container when stopped.
docker run --name coap-test-server -d --rm -p 5683:5683/udp aleravat/coap-test-server:latest
If you need to access the test server with a static IP, you can redirect traffic from a fake static IP using the -p option. Below, we redirect traffic from 172.16.177.50 to the coap-testserver.
docker run --name coap-test-server -d --rm -p 172.16.177.50:5683:5683/udp aleravat/coap-test-server:latest
You can also get the current IP address of the container from its id. Use docker ps to identify its id, and then docker inspect <id> | grep IPAddress.
Thanks to Jens Dede, whose Docker 'coap-testserver' was the base for this work.
Content type
Image
Digest
Size
315.4 MB
Last updated
about 8 years ago
docker pull aleravat/coap-test-server