Skip to content
Jakob Ketterl edited this page Jun 17, 2021 · 3 revisions

Some notes about running codecserver in docker:

Docker images for the codecserver are available on the docker hub.

Configuration

The codecserver configfile is /etc/codecserver/codecserver.conf.d in the container. To edit the configuration, you will need to map a volume or local mount to /etc/codecserver. Example:

docker volume create codecserver-config
docker run -f codecserver-config:/etc/codecserver jketterl/codecserver:latest

Networking

Unix domain sockets don't work (readily) with docker containers, so it's recommended to enable one of the TCP servers in the config. The example config in conf enables both IPv4 and IPv6.

Codecserver listens on port 1073 per default, you will need to forward that port to wherever you need it. To map it to port 1073 on the docker host, use this exmple:

docker run -p 1073:1073 jketterl/codecserver:latest

Forwarding of devices

To be able to use any serial devices (e.g. the tty created by your AMBE USB stick), you need to forward the corresponding devices to the docker container. This example covers a USB stick that has registered as ttyUSB0 on the host:

docker run --device /dev/ttyUSB0 jketterl/codecserver:latest

The device will have the same name inside the container.

You will also need to tell the codecserver where to find the device in the configuration. The default configuration has an example that is commented out.

Clone this wiki locally