I am trying to download and start a docker container like this:
docker run -it -p 8000:8000 -p 8060:8060 -h sandbox somegithubrepo bash
However, the downloading stops midway and I get this:
docker: unauthorized: authentication required.
See 'docker run --help'.
So I looked here: docker unauthorized: authentication required - upon push with successful login
I tried this:
docker push mydockerhubusername/somerepo:latest
But I'm getting:
The push refers to a repository [docker.io/mydockerhubusername/somerepo]
An image does not exist locally with the tag: mydockerhubusername/somerepo
My ~/.docker/config.json looks like this:
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "someKey"
}
}
}
So how can I download the container?