Cannot use --link in docker

Hello, do you have other solutions? because I can’t use --link in docker. I found the problem is docker not support on RHEL 8

Not an RHEL expert, and I guess it uses Podman to manage containers.
The Docker’s --link flag is a legacy feature and advised not to use it. Instead try using user-defined network.