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  2022  2023  <20242025  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  2022  2023  <20242025 
<== Date ==> <== Thread ==>

Subject: Question about PVaccess and docker
From: Florian Feldbauer via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 11 Sep 2024 15:17:01 +0200
Hey all,

we use docker to manage and distribute our IOCs.

Assume the following:

I have two PCs connected via LAN.
On PC A I ran a docker container containing an IOC
ON PC B I try to access PVs of this IOC via caget/pvget (locally installed).

If I start my docker container with the `--network host` option (the container uses the network of PC A), both caget and pvget are working fine.

But if I use the Docker's default bridge network and map the ports of the container to the ports on PC A (`-p 5064:5064 -p 5064:5064/udp -p 5075:5075 -p 5076:5076/udp`) only caget works.
The ioc does not reply to any request on port 5076/udp
I also tried to use pvlist which returns nothing. But `pvlist <IP of PC A>` works.

I used wireshark to check. The only difference in these two scenarios I can see are broadcast messages send regularly by the ioc to ports 5065/udp and 5076/udp. This difference is to be expected, as network bridges do not forward broadcasts, so these are only visible in the 1st case.

Any idea why pvget/pvlist cannot connect with my ioc if I use the `-p` options when starting the docker container?

Best regards,
Florian

--
Ruhr-Universität Bochum
AG der Experimentalphysik I
Dr. Florian Feldbauer
NB 2/131 / Fach 125
Universitätsstr. 150
D-44801 Bochum

Office: NB 2/134
Phone:  (+49)234 / 32-23563
Fax:    (+49)234 / 32-14170
https://urldefense.us/v3/__https://paluma.ruhr-uni-bochum.de__;!!G_uCfscf7eWS!bha07Af_6X0MgpAy2ARPgz9OWUkxxFHIpbYsUojcJ4C0tMDPax4OyzJZyIquxWdihbsqedF4EME4g3RI1CxgVnq4XgPruO9t04Q$
Replies:
Re: Question about PVaccess and docker Knap, Giles (DLSLtd,RAL,LSCI) via Tech-talk

Navigate by Date:
Prev: ADPilatus with PPU John Dobbins via Tech-talk
Next: Re: ADPilatus with PPU 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  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: ADPilatus with PPU Mark Rivers via Tech-talk
Next: Re: Question about PVaccess and docker Knap, Giles (DLSLtd,RAL,LSCI) 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  2022  2023  <20242025 
ANJ, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·