Docker Community Forums

Share and learn in the Docker community.

Docker Cloud - link connectivity


(Meju) #1

Hi guys,

I have two questions.

  1. Can you suggest me how to provide service to linked containers and procedures for linking containers in docker-compose with an example?

  2. If I provide service to repository, the containers endpoint takes as tcp://. Why? Eg: tcp://admkaraf-76f2febc.4de00eb9.svc.dockerapp.io:8081


(Fernando Mayo) #2
  1. You can find information about Docker Cloud service discovery here: https://docs.docker.com/docker-cloud/apps/service-links/
  2. Do you refer to the environment variables that get injected? Or to the UI? The environment variables always prefix the endpoints with tcp://, and the UI prefixes them with tcp:// if the port number is not recognized.