Networking from remote-docker to primary container

We have a job that creates a docker container on a remote-docker instance. That container needs to communicate with a process running on the job’s primary container. Is this possible?

You can use port forwarding through ssh:
ssh -f -N -L 127.0.0.1:8000:127.0.0.1:8000 remote-docker