title: Is there a way to get the Docker Hub username of the current user?
body: <p>I see that <code>~/.dockercfg</code> has your login credentials, but it is your email and not your username. I see that running <code>docker login</code> displays your username and prompts you to change it. But, you can you just get your username to put into a build script?</p>