API connecting CONNECT_CR_SRVR_HELLO:wrong version number

Trying to write to influxdb running on docker container. Getting SSL error about wrong version when I try
curl, python request or even openssl s_client from the docker host or the in the container shell itself.

curl -vk https://localhost:8086/api/v2/ping

openssl s_client -connect localhost:8086

Is SSL not enabled for the API?