Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-5658

docker environment for SERVER_USER and SERVER_PASSWORD not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: docker, Grafana, PMM Server
    • Labels:
      None
    • Environment:

      Description

      While trying to create pmm2 container, SERVER_USER and SERVER_PASSWORD environment variables are not taking effect and it sets default credentials for grafana.

      1. docker pull percona/pmm-server:2
      2. docker create -v /srv --name pmm-data-2 percona/pmm-server:2 /bin/true
      3. docker run -d -p 280:80 -p 2443:443 --volumes-from pmm-data-2 --name pmm-server-2 --restart always -e SERVER_USER=user -e SERVER_PASSWORD=password -e DISABLE_TELEMETRY=true percona/pmm-server:2
      1. docker exec -it pmm-server-2 bash
      2. echo $SERVER_USER $SERVER_PASSWORD (This works indeed)
        user password

      But this credentials are not getting changes and password needs to be reset in grafana while opening for first time.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                Sids.Agravat Siddharth Agravat
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated: