apm-server test output from within the container will need the same configuration you're passing into apm-server via the command. Two options for you:
-
Move the configuration to
apm-server.ymland bind mount it into the docker container as directed in Run APM Server on Docker | APM Server Reference [7.15] | Elastic -
Run the output test with same params:
apm-server test output -E output.elasticsearch.hosts=["172.29.143.107:9200"] -E output.elasticsearch.username=elastic -E output.elasticsearch.password=elastic
I would also recommend updating to the latest release, version 8.1.2 as of today.