Hello all,
I am trying to run a PVA client on Docker, but when I run the image on macOS I can’t connect to any IOC, while from Linux it works fine. There are some differences in how the Docker network interface works on Linux and
macOS, but I couldn’t find a way to solve this issue.
The issue is limited to PV Access, CA works fine.
In case someone wants to reproduce the issue, I am attaching a db file and a Dockerfile and these are the steps:
- Run the IOC on the host machine:
$ softIocPVA -d count.db
- Build the Docker image:
$ docker build -t pvatest .
- Run the Docker image:
$ docker run pvatest
On Linux you’ll get something like this:
$ docker run pvatest
../iocinf.cpp: Parsing 'EPICS_CA_ADDR_LIST'
Bad internet address or host name: 'host.docker.internal'
counter
89
counter 2022-07-27 09:05:26.714
89
While on macOS this:
% docker run pvatest
counter
90
counter Timeout
The first line from the output is the
caget command, the second one is
pvget.
Best regards,
Juan