Unauthorized for docker stack deploy

5/10/2020

I have a project which I can run on macOS under Docker Desktop. But when I run the same under Linux/Ubuntu with microk8s, I get unauthorized for:

Removing pre-existing stack...
Unauthorized
Building docker images...
Sending build context to Docker daemon     65MB
Step 1/24 : FROM anapsix/alpine-java:8u172b11_jdk_unlimited
Get https://registry-1.docker.io/v2/: x509: certificate is valid for *.gresb.com, gresb.com, not registry-1.docker.io
Sending build context to Docker daemon     65MB
Step 1/24 : FROM anapsix/alpine-java:8u172b11_jdk_unlimited
Get https://registry-1.docker.io/v2/: x509: certificate is valid for *.gresb.com, gresb.com, not registry-1.docker.io
Sending build context to Docker daemon     65MB
Step 1/24 : FROM anapsix/alpine-java:8u172b11_jdk_unlimited
Get https://registry-1.docker.io/v2/: x509: certificate is valid for *.gresb.com, gresb.com, not registry-1.docker.io
Deploying stack...
Unauthorized
Docker ps:
Unauthorized
docker service logs -f CONTAINER
party-a SSH shell access
ssh -o StrictHostKeyChecking=no user1@localhost -o UserKnownHostsFile=/dev/null -p 2221
party-b SSH shell access
ssh -o StrictHostKeyChecking=no user1@localhost -o UserKnownHostsFile=/dev/null -p 2222
party-c SSH shell access
ssh -o StrictHostKeyChecking=no user1@localhost -o UserKnownHostsFile=/dev/null -p 2223

The code is on github: https://github.com/henrikr3/corda-kubernetes-yo I am new to kubernetes, I tried to login to dockerhub but I am not even sure which endpoint it tries to authorize to.

-- 1174
corda
docker
docker-compose
kubernetes

1 Answer

5/20/2020

glad to see you were able to figure out that it was the network provider!

For anyone in the future who finds this there's a recent example of a similar setup for docker compose that makes clear how to setup a corda container cluster on github here: https://github.com/EricMcEvoyR3/corda-docker-compose

-- davidawad
Source: StackOverflow