Setup relay node in docker container

Yes, this can be done with no problem - even on a RaspberryPi. Lately however, I’ve seen lots of invalid Tx on the relay that made it fall behind. Currently, I run the relay on GCE and the BP on a Pi.
There are a few issues with arm64 related to performance in crypto libraries, but you will likely not see those when you run on x86_64.

  1. Define a network like this …
docker network create --subnet=172.18.0.0/16 cardano
  1. Use this network in both containers
docker run --network cardano ...
  1. Change the topologies such that it uses docker dns names

If DNS resolution fails for some reason, you can use the docker assigned IPs. These should however then be given explicitly with docker run --ip 172.18.0.10 ...

If all goes well, we may have docker compose and k8s scripts for this upstream.