Failed to register pmm-agent on PMM Server: Internal server error

I want to install percona monitoring and management, I installed the pmm-agent and pmm-server in docker,
When I do :# docker ps
The status of pmm-server : always unhealthy

Return health: starting when I execute:

Docker restart id-server-container

And returned unhealthy fast

The web interface always:
502 bad gateway
–‐--------------------------
nginx

And when I want to register the pmm-client to the pmm-server with this command:
#pmm-admin config --server-url=https://admin:admin@ip_@:443 --server-insecure-tls

This output display:

Checking local pmm-agent status…
Pmm-agent is running.
Registration pmm-agent on PMM Server…
Failed to register pmm-agent on PMM Server: Internal server error.
Please check username and password.

Any help please :pray:

Please show us all commands used to start pmm-server. Also, please provide docker logs pmm-server otherwise it is very difficult to help.