Okay, now I know what my problem was. I've missunderstood the description at the paragraph "Servicing the interface is only possible in the container it was created. It is not available to the Docker host or to any other containers started." I read it as if the whole interface was not available in other containers. That's the whole reason why I've tried to make a mysql-server work in the same container as the interface is hosted in.
Now I got it working, thanks! I can connect from eth0 and cifx0 to the mysql-database.
The problem I am facing now is that the netPi starts to freeze when the "netpi-netx-ethernet-lan"-container is active. Sometimes right at the start, sometimes it works for a short while and than it freezes. At the moment I am trying to figure out, what the problem might be. I have a feeling, that it only freezes, when another container runs at "host"-network as well. I will supply you with more info, when available.
Another problem, I was facing is configuring the interface to run in dhcp mode. I have configured the infterface-file "/etc/network/interfaces.d/cifx0" to look like this:
Code:
auto cifx0
allow-hotplug cifx0
iface cifx0 inet dhcp
But when I first started the container, the following error message occured:
Code:
Configuring network interfaces...failed.
ifup: failed to bring up cifx0
No DHCP client software found!
Afterwards, I installed a dhcp-client using this command:
Code:
apt-get install isc-dhcp-client
Now dhcp is basically working, an ip-adress, subnet mask and gateway were successfully retrieved. The only problem now is that it could not resolve the DNS-servers of our network but I don't really need that anyways.
Do you want to add the dhcp-client to your image? Otherwise I would build my own.
Regards,
Andi