[docker] How to know if docker is already logged in to a docker registry server