No matter what I do, I can't seem to fix network problems when trying to run this docker image on OpenMediaVault 4.
I need to set the version to 2 in the .yml file, otherwise docker compose won't work, and when it does works, all ports are listening on 0.0.0.0
Has anyone been able to get this to run on any version of OpenMediaVault?
Thanks
What does docker inspect have to say about the network configuration of the container you made with v2 and v3?
Either way if v2 works fine. It is perfectly fine to run that since the version in the compose file refers to the version of the configuration file standard. It has no affect on what docker, or docker-compose version you are using. There are newer docker-compose.yml versions, but those are more targeted towards docker-swarm.
Have you tried host networking? That does work? Bridge networking is not really working on my centos ovirt NAS either, because of the firewall rules and networks ovirt setup. But host networking works and bridge networking works in VMs ovirt can host. So it may be the same thing for your openmediavault.
(EDIT: Got this part wrong at first. Now its right. The part where it sais "HostIp" made me check that again. Since that would not really make much sence otherwise, for what I initially believed it to be. Either way, I never needed to specify an IP there.)
When you run docker inspect this is kinda what´s expected when using bridge networking. I mapped the two VNC port(s) to different ports on the host. The 0.0.0.0 part is the host. You (or I) didn´t specify any IP, the 0.0.0.0 means as far as docker is concerned any host IP is valid.
You can specify an IP if you need one. Such as 192.168.1.2:5800:5800 witch would mean it´s only reachable at 192.168.1.2. Meaning if you put an IP there and run a container locally 127.0.0.1:5800 will not work. Accessing 192.168.1.2:5800 would work. With 0.0.0.0 both work. If you have multiple networks, you can restrict what networks have access to it in that way.
"NetworkSettings": {
"Bridge": "",
"SandboxID": "b9018903c4afaf3f46ce32a6881a321a4789b51620074cbb5627a1c142612c7b",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"1900/udp": [
{
"HostIp": "0.0.0.0",
"HostPort": "1900"
}
],
"52100/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "52100"
}
],
"52101/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "52101"
}
],
"52199/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "52199"
}
],
"5800/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5810"
}
],
"5900/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5911"
}
]
}