April-19th-2019, 11:59 AM
(April-17th-2019, 05:38 PM)Armin@netPI Wrote: Well if you read the readme of the Codesys container carefully it says using Field network communications such as Profinet or EtherCAT along with Codesys requires to start the container in “host” mode, else in “bridged” mode the container is getting a local IP address (typically 172.17.0.1...2...3) and subnet mask (255.255.0.0) by Docker and the master function can hence only be driven to this subnet (172.17.0.x) only which is not what you want. Therefore the host mode is needed letting the TCP/IP stack (and the IP setting) of the host system be shared with the container giving full access to eth0 then as if it is running on the host.
Oh yes... I have suspected that and it got lost somehow.
I discovered that DNS resolves do not work anymore. The hilschernetpi/netpi-netx-ethernet-lan/ works in host mode as expected with correct DNS. Nevertheless when I deploy the merged container on the device in host mode I get pings of IP addresses but DNS is broken. Do you came accross that already? I'm so close now...
Thank you very much for you comments and help,
Andreas