Unable to use any custom port for K6_WEB_DASHBOARD

Hello all,

I am working with Grafana / k6 for the first time… so far documentation has been great and community support is even better!

I am running into a weird issue where I cannot set any custom port for the built in web dashboard. Also seeing the following error listen tcp :5656: bind: address already in use

This only happens when running from my docker-compose, getting the expect result with local commands. Any ideas on where to start to debug here?

Thank you for the review.

k6 service definition in docker compose:

Blockquote
k6:
platform: linux/x86_64
image: grafana/k6:master-with-browser
#debug influx db
# entrypoint: /bin/sh
# user: root
networks:
- k6
ports:
- “6565:6565”
environment:
# - K6_OUT=influxdb=http://influxdb:8086/k6
- K6_WEB_DASHBOARD=true
- K6_OUT=web-dashboard
- K6_WEB_DASHBOARD_EXPORT=html-report.html
- K6_WEB_DASHBOARD_PORT=22
volumes:
- ./scripts:/scripts
Blockquote

Hi @jiosh31, welcome to the community forum!

Can you share the whole docker-compose.yaml with us? For me, this k6 service definition just prints the usage of the k6. It doesn’t even try to start the web-dashboard.