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?