Hi All,
So I saw this was posted before but without a proper solution or breakdown why this happens. #139 (comment)
I'm also having this issue from time to time and its really unclear what it triggers.
First I do the docker login and that goes well, after that I start the buildx for the 2 images but I still get the 401 error in the end as you can see. I'm using it on Mac Docker Desktop 2.3.2.0 Edge. if you need additional information please let me know.
docker login
Authenticating with existing credentials...
Login Succeeded
docker buildx build -f Docker/alpine-cloud/api/Dockerfile --platform linux/amd64,linux/arm/v7 -t blabla1337/skf-api:dev --push .
[+] Building 1483.8s (38/38) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [linux/amd64 internal] load metadata for docker.io/library/python:3.7 9.2s
=> [linux/arm/v7 internal] load metadata for docker.io/library/python:3.7 11.5s
=> [internal] load build context 89.0s
=> => transferring context: 967.06MB 81.4s
=> [linux/arm/v7 stage-1 1/16] FROM docker.io/library/python:3.7@sha256:322ff8fa9fb1cc6d0cc17e2e2b966ca17cda5d036930496cac1a03810525cbb1 0.0s
=> => resolve docker.io/library/python:3.7@sha256:322ff8fa9fb1cc6d0cc17e2e2b966ca17cda5d036930496cac1a03810525cbb1 0.0s
=> [linux/amd64 stage-1 1/16] FROM docker.io/library/python:3.7@sha256:322ff8fa9fb1cc6d0cc17e2e2b966ca17cda5d036930496cac1a03810525cbb1 0.0s
=> CACHED [linux/amd64 stage-1 2/16] RUN apt update && apt install -y vim libblas-dev libblas-dev liblapack-dev libatlas-base-dev gfortran cython 0.0s
=> CACHED [linux/amd64 stage-1 3/16] RUN groupadd --gid 1000 user_api && useradd --uid 1000 --gid user_api -m user_api && mkdir -p /home/user_api 0.0s
=> [linux/amd64 stage-1 4/16] ADD ./ /home/user_api/ 27.8s
=> CACHED [linux/arm/v7 stage-1 2/16] RUN apt update && apt install -y vim libblas-dev libblas-dev liblapack-dev libatlas-base-dev gfortran cython 0.0s
=> CACHED [linux/arm/v7 stage-1 3/16] RUN groupadd --gid 1000 user_api && useradd --uid 1000 --gid user_api -m user_api && mkdir -p /home/user_api 0.0s
=> CACHED [linux/arm/v7 stage-1 4/16] ADD ./ /home/user_api/ 0.0s
=> CACHED [linux/arm/v7 stage-1 5/16] COPY ./Docker/alpine-cloud/api/entrypoint.sh /home/user_api/entrypoint.sh 0.0s
=> CACHED [linux/arm/v7 stage-1 6/16] RUN touch /home/user_api/skf/db/db.sqlite 0.0s
=> CACHED [linux/arm/v7 stage-1 7/16] RUN chmod a+rw /home/user_api/skf/db /home/user_api/skf/db/* 0.0s
=> CACHED [linux/arm/v7 stage-1 8/16] WORKDIR /home/user_api/ 0.0s
=> CACHED [linux/arm/v7 stage-1 9/16] RUN mkdir .kube 0.0s
=> CACHED [linux/arm/v7 stage-1 10/16] RUN mkdir .config 0.0s
=> CACHED [linux/arm/v7 stage-1 11/16] RUN mkdir .config/pip 0.0s
=> CACHED [linux/arm/v7 stage-1 12/16] RUN echo "[global]" >> .config/pip/pip.conf 0.0s
=> CACHED [linux/arm/v7 stage-1 13/16] RUN echo "extra-index-url=https://www.piwheels.org/simple" >> .config/pip/pip.conf 0.0s
=> CACHED [linux/arm/v7 stage-1 14/16] RUN pip3 install --upgrade pip && pip3 install --user nltk && pip3 install --user cython && pip3 install --user numpy 0.0s
=> CACHED [linux/arm/v7 stage-1 15/16] RUN if [ `ps auwxf | grep qemu-arm | wc -l` = 4 ]; then pip3 install --user scipy==1.5.0rc2 ; else pip3 install --user scipy ; fi 0.0s
=> [linux/arm/v7 stage-1 16/16] RUN pip3 install --user -r requirements.txt 325.9s
=> [linux/amd64 stage-1 5/16] COPY ./Docker/alpine-cloud/api/entrypoint.sh /home/user_api/entrypoint.sh 1.2s
=> [linux/amd64 stage-1 6/16] RUN touch /home/user_api/skf/db/db.sqlite 0.2s
=> [linux/amd64 stage-1 7/16] RUN chmod a+rw /home/user_api/skf/db /home/user_api/skf/db/* 0.2s
=> [linux/amd64 stage-1 8/16] WORKDIR /home/user_api/ 0.0s
=> [linux/amd64 stage-1 9/16] RUN mkdir .kube 0.2s
=> [linux/amd64 stage-1 10/16] RUN mkdir .config 0.2s
=> [linux/amd64 stage-1 11/16] RUN mkdir .config/pip 0.2s
=> [linux/amd64 stage-1 12/16] RUN echo "[global]" >> .config/pip/pip.conf 0.2s
=> [linux/amd64 stage-1 13/16] RUN echo "extra-index-url=https://www.piwheels.org/simple" >> .config/pip/pip.conf 0.2s
=> [linux/amd64 stage-1 14/16] RUN pip3 install --upgrade pip && pip3 install --user nltk && pip3 install --user cython && pip3 install --user numpy 22.0s
=> [linux/amd64 stage-1 15/16] RUN if [ `ps auwxf | grep qemu-arm | wc -l` = 4 ]; then pip3 install --user scipy==1.5.0rc2 ; else pip3 install --user scipy ; fi 16.0s
=> [linux/amd64 stage-1 16/16] RUN pip3 install --user -r requirements.txt 65.1s
=> ERROR exporting to image 1056.5s
=> => exporting layers 433.2s
=> => exporting manifest sha256:651a8c2a92c21b35939f84379ac3ce6a59a102ad12c1ffd77b87ae5943c10440 0.0s
=> => exporting config sha256:75bc89b31a6e8e5bcb67ef00ed3afbec60af799da0412d17c13852eb956d4e5f 0.0s
=> => exporting manifest sha256:92aad5879eb60c8e4a776ecca27906068d0ae6264b69afefad152e8b566756ad 0.0s
=> => exporting config sha256:24273c4da9572c159210060f87c5889f2f1508feeab36708a27d55fae989945e 0.0s
=> => exporting manifest list sha256:cbbd8a5daf155203ad74613fafddeb7dd1187b7d35da33682c150247c6871c27 0.0s
=> => pushing layers 621.9s
=> => pushing manifest for docker.io/blabla1337/skf-api:dev 1.2s
------
> exporting to image:
------
failed to solve: rpc error: code = Unknown desc = failed commit on ref "manifest-sha256:651a8c2a92c21b35939f84379ac3ce6a59a102ad12c1ffd77b87ae5943c10440": unexpected status: 401 Unauthorized
Hi All,
So I saw this was posted before but without a proper solution or breakdown why this happens. #139 (comment)
I'm also having this issue from time to time and its really unclear what it triggers.
First I do the docker login and that goes well, after that I start the buildx for the 2 images but I still get the 401 error in the end as you can see. I'm using it on Mac Docker Desktop 2.3.2.0 Edge. if you need additional information please let me know.