EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: PVA and Docker on Mac
From: Juan F. Esteban Müller via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 27 Jul 2022 09:25:01 +0000

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:

  1. Run the IOC on the host machine: $ softIocPVA -d count.db
  2. Build the Docker image: $ docker build -t pvatest .
  3. 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

Attachment: count.db
Description: count.db

Attachment: Dockerfile
Description: Dockerfile


Replies:
Re: PVA and Docker on Mac Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: Retrieving record name from aSub input/output fields Wang, Andrew via Tech-talk
Next: Re: PINI field not working with modbus Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Retrieving record name from aSub input/output fields Andrew Johnson via Tech-talk
Next: Re: PVA and Docker on Mac Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·