docker push denied error

docker push denied error,第1张

docker push denied error

because not login

echo “pushing lianyz/httpserver”
pushing lianyz/httpserver
docker push lianyz/httpserver:v1.0
The push refers to repository [docker.io/lianyz/httpserver]
8cc9f335dac6: Preparing
9f54eef41275: Preparing
denied: requested access to the resource is denied
make: *** [Makefile:16: push] Error 1
[root@lianyz httpserver]# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don’t have a Docker ID, head over to https://hub.docker.com to create one.
Username: lianyz
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
[root@lianyz httpserver]# make push
echo “building httpserver binary”
building httpserver binary
mkdir -p bin/amd64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .
echo “building httpserver container”
building httpserver container
docker build -t lianyz/httpserver:v1.0 .
Sending build context to Docker daemon 20.14MB
Step 1/9 : FROM ubuntu
—> ba6acccedd29
Step 2/9 : ENV MY_SERVICE_PORT=80
—> Using cache
—> 8f3f7f218478
Step 3/9 : ENV MY_SERVICE_PORT1=80
—> Using cache
—> 26e92bcf4b31
Step 4/9 : ENV MY_SERVICE_PORT2=80
—> Using cache
—> 82a1c7e0ea35
Step 5/9 : ENV MY_SERVICE_PORT3=80
—> Using cache
—> cdad6d25261f
Step 6/9 : LABEL multi.label1=“value1” multi.label2=“value2” other=“value3”
—> Using cache
—> a227304180e1
Step 7/9 : ADD bin/amd64/httpserver /httpserver
—> Using cache
—> ad0cab575564
Step 8/9 : EXPOSE 80
—> Using cache
—> 6790d49dc326
Step 9/9 : ENTRYPOINT /httpserver
—> Using cache
—> 64f0084aa4d1
Successfully built 64f0084aa4d1
Successfully tagged lianyz/httpserver:v1.0
echo “pushing lianyz/httpserver”
pushing lianyz/httpserver
docker push lianyz/httpserver:v1.0
The push refers to repository [docker.io/lianyz/httpserver]
8cc9f335dac6: Pushed
9f54eef41275: Layer already exists
v1.0: digest: sha256:ccca05cfaf05854495410642990013d1f5dbaf1edb513197d15a512d02c72522 size: 740

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4965094.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-13
下一篇 2022-11-13

发表评论

登录后才能评论

评论列表(0条)

保存