docker: unauthorized: authentication required
<p>I am trying to download and start a docker container like this:</p>

<pre><code>docker run -it -p 8000:8000 -p 8060:8060 -h sandbox somegithubrepo bash
</code></pre>

<p>However, the downloading stops midway and I get this:</p>

<pre><code>docker: unauthorized: authentication required.
See 'docker run --help'.
</code></pre>

<p>So I looked here:
<a href="https://stackoverflow.com/questions/36663742/docker-unauthorized-authentication-required-upon-push-with-successful-login">docker unauthorized: authentication required - upon push with successful login</a></p>

<p>I tried this:</p>

<pre><code>docker push  mydockerhubusername/somerepo:latest
</code></pre>

<p>But I'm getting:</p>

<pre><code>The push refers to a repository [docker.io/mydockerhubusername/somerepo]
An image does not exist locally with the tag: mydockerhubusername/somerepo
</code></pre>

<p>My <code>~/.docker/config.json</code> looks like this:</p>

<pre><code>{
        "auths": {
                "https://index.docker.io/v1/": {
                        "auth": "someKey"
                }
        }
}
</code></pre>

<p>So how can I download the container?</p>