Questions tagged [registrator]

Service registry bridge for Docker, sponsored by Weave.

11 questions
10
votes
1 answer

Get list of containers/services of docker-compose from inside a container

There is a smart way to get the list of services (or containers) of docker-compose files from inside of a container. I would prefer not to using volumes, or passing statically the compose-file to container and parse it or pass a list with these…
4
votes
1 answer

Implementing Consul healthcheck in Docker environment

I am new with Consul/Registrator and Docker. I am confused about using the Consul healthcheck in Docker environment. It is described in the following link, within the section Docker + Interval: https://www.consul.io/docs/agent/checks.html Here is…
Aleks
  • 41
  • 6
3
votes
1 answer

How to use consul/registration for service discovery on kubernetes nodes?

I want to use consul/registration using registrator for service discovery on my kubernetes nodes. Need help in how should I setup consul. I have a deployed kubernetes with 1 master and 2 minions on openstack using kubeadm. For consul and…
sarora
  • 41
  • 2
  • 6
1
vote
2 answers

docker-compose evaluate expression in command array

I have below docker-compose.yml file. In the command section I would like to evaluate the curl expression before the command is passed to docker engine i.e. my curl should be evaluated first and then my container should run with -ip 10.0.0.2…
Rash
  • 7,677
  • 1
  • 53
  • 74
1
vote
1 answer

Why is consul health check returning an empty array?

We have a docker-compose.yml file: version: '3' services: consul: container_name: consul command: agent -dev -config-dir=/consul/config dns: 8.8.8.8 hostname: consul-docker image:…
user674669
  • 10,681
  • 15
  • 72
  • 105
1
vote
0 answers

I could curl using IP but not using consul serviceName?

I am trying to teach myself consul. I created a dockerized consul and a REST service that just returns 'Hello World', invoking curl on the consul to get the information, nets me $ curl $(docker-machine ip):8500/v1/catalog/service/hello-server |…
sub_o
  • 2,642
  • 5
  • 28
  • 41
1
vote
1 answer

Getting Consul and Registrator to work in Kubernetes

I'm trying to use Consul with Registrator in GCE & K8s. Everything launches fine except `Registrator'. Here is my deployment: apiVersion: extensions/v1beta1 kind: Deployment metadata: creationTimestamp: null name: consul spec: replicas: 1 …
Tino
  • 3,340
  • 5
  • 44
  • 74
1
vote
1 answer

Getting IP into env variable via DNS in kubernetes

I'm trying to get my head around K8s coming from docker compose. I would like to setup my first pod with two containers which I pushed to a registry. Following question: How do I get the IP via DNS into a environment variable, so that registrator…
Tino
  • 3,340
  • 5
  • 44
  • 74
1
vote
2 answers

Docker CMD evaluation with ENTRYPOINT

I have a Dockerfile that falls into the exec_entry p1_entry /bin/sh -c exec_cmd p1_cmd category in the matrix found in Understand how CMD and ENTRYPOINT interact. The behavior is not what I'm expecting. I was expecting /bin/sh -c exec_cmd p1_cmd…
mikehwang
  • 490
  • 3
  • 10
1
vote
1 answer

Using Consul, how can I assign domain names to containers?

I am trying to setup a consul, registrator, docker setup and I am wondering how when a container registers itself, I can assign it a domain name so it can start to receive requests. It could be various containers, with various functionalities,…
Christopher Thomas
  • 4,424
  • 4
  • 34
  • 49
0
votes
1 answer

Traefik configuration to allow websocket and https on the same port of a container

I have a docker container (nginx) which expose only 1 port 443. This container listens to protocoles wss and https. I need to configure my docker-compose file to push informations to my consul catalog. How can I put informations to add these 2…