简体   繁体   中英

Pushing buildx images to quay registry

I'm getting an error when pushing an image to quay using buildx. If I use a standard docker build I get no issues using the same credentials. I am doing this via Drone CI. I am getting the following error:

#17 exporting to image
#17 pushing layers 1.3s done
#17 ERROR: unexpected status: 401 UNAUTHORIZED
------
 > exporting to image:
------
error: failed to solve: unexpected status: 401 UNAUTHORIZED

These are the commands I am running via CI:

  - docker login -u="orgname+build_test" -p=$${DOCKER_PASSWORD} quay.io
  - docker run --privileged --rm tonistiigi/binfmt --install all
  - docker buildx create --name container --driver docker-container --use
  - docker buildx build --platform linux/amd64,linux/arm/v7 -t quay.io/orgname/test:latest --output type=registry .

This is running in 19.03.12-dind image which I have added the build x plugin. I am able to run the build x commands but it fails to upload image to the quay registry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM