Build Failed. No push access to specified image repository. Trying running with `--default-repo` flag.
workcheng opened this issue · 2 comments
workcheng commented
Build Failed. No push access to specified image repository. Trying running with
--default-repo
flag.
请问下,按照 readme.md 克隆到本地,按照构建命令构建,skaffold dev
报错如上,需要做什么配置吗?
以下是按照构建部分输出:
./mvnw package
[INFO]
[INFO] bookstore-microservices-kubernetes ................. SUCCESS [ 0.952 s]
[INFO] bookstore-microservices-platform-gateway ........... SUCCESS [ 1.391 s]
[INFO] bookstore-microservices-library-infrastructure ..... SUCCESS [ 0.460 s]
[INFO] bookstore-microservices-library-testing ............ SUCCESS [ 0.211 s]
[INFO] bookstore-microservices-domain-security ............ SUCCESS [ 15.275 s]
[INFO] bookstore-microservices-domain-payment ............. SUCCESS [ 14.341 s]
[INFO] bookstore-microservices-domain-account ............. SUCCESS [ 14.164 s]
[INFO] bookstore-microservices-domain-warehouse ........... SUCCESS [ 14.414 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:01 min
[INFO] Finished at: 2021-06-01T15:34:02+08:00
[INFO] ------------------------------------------------------------------------
skaffold dev
Listing files to watch...
- icyfenix/bookstore-kubernetes-domain-warehouse
- icyfenix/bookstore-kubernetes-domain-security
- icyfenix/bookstore-kubernetes-domain-account
- icyfenix/bookstore-kubernetes-domain-payment
- icyfenix/bookstore-kubernetes-platform-gateway
……
……
……
Checking cache...
- icyfenix/bookstore-kubernetes-domain-warehouse: Not found. Building
- icyfenix/bookstore-kubernetes-domain-security: Not found. Building
- icyfenix/bookstore-kubernetes-domain-account: Not found. Building
- icyfenix/bookstore-kubernetes-domain-payment: Not found. Building
- icyfenix/bookstore-kubernetes-platform-gateway: Not found. Building
Starting build...
……
……
……
Successfully built 85cb40a7b4bd
Successfully tagged icyfenix/bookstore-kubernetes-domain-warehouse:latest
The push refers to repository [docker.io/icyfenix/bookstore-kubernetes-domain-warehouse]
fe767f9494ae: Preparing
e10fdc20c652: Preparing
503e53e365f3: Preparing
Building [icyfenix/bookstore-kubernetes-domain-security]...
Building [icyfenix/bookstore-kubernetes-domain-account]...
Building [icyfenix/bookstore-kubernetes-domain-payment]...
Building [icyfenix/bookstore-kubernetes-platform-gateway]...
Build Failed. No push access to specified image repository. Trying running with `--default-repo` flag.
fenixsoft commented
原因提示很清楚了,因为没有“docker.io/icyfenix/bookstore-kubernetes-domain-warehouse”仓库的写权限。
docker.io/icyfenix是我在dockerhub的账号,公众只能拉取,不能推送,你可以push到自己的私有库上即可。
workcheng commented
原因提示很清楚了,因为没有“docker.io/icyfenix/bookstore-kubernetes-domain-warehouse”仓库的写权限。
docker.io/icyfenix是我在dockerhub的账号,公众只能拉取,不能推送,你可以push到自己的私有库上即可。
ok,done,thank U