I am having issue unable to push image to docker.io
I searched several solutions but failed:
Here is how I push image:
Commit the container
docker container commit 622ba58fe314 khoa/npm-app:v1
Log in Docker:
docker login -u khoana85
tag image to docker.io
docker tag khoa/npm-app:v1 khoana85/learningdocker/npm-app:v1
recheck
docker image ls -a
REPOSITORY TAG IMAGE ID CREATED SIZE
khoa/npm-app v1 571a76a91a9c 2 minutes ago 1.1GB
khoana85/learningdocker/npm-app v1 571a76a91a9c 2 minutes ago 1.1GB
push image with new tag but failed
docker image push -a khoana85/learningdocker/npm-app
The push refers to repository [docker.io/khoana85/learningdocker/npm-app]
221d3021d8cb: Preparing
ef80579b0296: Preparing
2f6f74fe2429: Preparing
146e03f15953: Preparing
5f70bf18a086: Preparing
f03c7a8d7c84: Waiting
ec35e25810ef: Waiting
3e8246801f04: Waiting
denied: requested access to the resource is denied
On docker hub, my repository is “khoana85/learningdocker”
I try another naming but still in vain:
PS C:\WINDOWS\system32> docker image ls -a
REPOSITORY TAG IMAGE ID CREATED SIZE
khoana85/learningdocker/npm-app v1 46f65e4b11af About a minute ago 1.1GB
npm-app v1 46f65e4b11af About a minute ago 1.1GB
PS C:\WINDOWS\system32> docker image push -a khoana85/learningdocker/npm-app
The push refers to repository [docker.io/khoana85/learningdocker/npm-app]
221d3021d8cb: Preparing
…
f0e7c4343948: Waiting
1387079e86ad: Waiting
denied: requested access to the resource is denied
PS C:\WINDOWS\system32> docker container commit 622ba58fe314 npm-app
sha256:d852ccb62c1b63a47964188b50c0be49a4956e120ba8c724c29d079ff2d437ae
PS C:\WINDOWS\system32> docker image ls -a
REPOSITORY TAG IMAGE ID CREATED SIZE
npm-app latest d852ccb62c1b 4 seconds ago 1.1GB
PS C:\WINDOWS\system32> docker image tag npm-app khoana85/learningdocker:npm-app
PS C:\WINDOWS\system32> docker image ls -a
REPOSITORY TAG IMAGE ID CREATED SIZE
khoana85/learningdocker npm-app d852ccb62c1b About a minute ago 1.1GB
npm-app latest d852ccb62c1b About a minute ago 1.1GB