Docker Community Forums

Share and learn in the Docker community.

Ambassador could not work for me

(Qgan) #1

When I used ambassador , I got following error

root@rhel71x64-Scott ~]# docker run --link redis:redis --name redis_ambassador -p 6379:6379 svendowideit/ambassador
Failed to autodetect target host/container and port using --link environment. Please specify them as arguments.

Thanks a lot

(Nathan Le Claire) #2

@qgan, in the modern use case (if you are on most recent Docker version), you most likely do not need to use the ambassador pattern. If you simply need to bridge communication of containers across hosts, I highly suggest creating an overlay network and running them on that (use --net). Then, you can use DNS (based on container name) to talk to the other container.