Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker] "Unknown port" from second docker instance #100

Open
ghost opened this issue Apr 1, 2021 · 0 comments
Open

[Docker] "Unknown port" from second docker instance #100

ghost opened this issue Apr 1, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2021

Hello,

I am running two docker containers for dev and prod, from docker-compose:

version: "3.6"
services:
  azure-metrics-exporter_dev:
    image: robustperception/azure_metrics_exporter
    network_mode: host
    restart: always
    command:
    - '--config.file=/config/dev.yaml'
    volumes:
    - "/azure-metrics-exporter/config:/config:rw"
  azure-metrics-exporter_prod:
    image: robustperception/azure_metrics_exporter
    network_mode: host
    restart: always
    command:
    - '--config.file=/config/prod.yaml'
    - '--web.listen-address=":9275"'
volumes:
    - "/azure-metrics-exporter/config:/config:rw"

Metrics looks good from dev in localhost:9276/metrics , but second docker is restarting all the time. Docker logs output:

azure-metrics-exporter# docker logs b9d7asdecbd0
2021/04/01 10:31:25 azure_metrics_exporter listening on port ":9275"
2021/04/01 10:31:25 Error starting HTTP server: listen tcp: address tcp/9275": unknown port

It looks that is not able to read port. But in docker-compose.yaml I am using command:
- '--web.listen-address=":9275"'

Tested with separated config and SPNs for subscription

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants