26 Jun
2019
26 Jun
'19
8:45 a.m.
This seems like a pretty basic use case but I cannot seem to find out how to do this: I want to create two containers, foo and bar, and have them talk to each other on ports that are not exposed to anything else. I used to do this by creating a docker network, my_network, that I attached my two containers to, and then I could access foo.my_network from the bar container. But how moving to RHEL 8 I have to port my code away from Docker and I can't figure out how to get my two containers to talk. It works fine on IP (10.88.0.10 and 10.88.0.11) but I would prefer to use the name since I don't trust the IP to be the same at every run. Any ideas?