fix tls handling for newest version of docker