Has anyone published using docker? <https://hub.d...
# documentation
g
Has anyone published using docker? https://hub.docker.com/r/pactfoundation/pact-cli is there any tutorial or doc that can help me out pls, thanks!
the reason to ask is because Im facing
Unauthorized. Please see <https://docs.pactflow.io/docs/login-help> for more information.
But I do have: • pacticipantName • pacticipantVersionNumber • .json file after run consumer test • Base URL for contract testing • Read/write token
m
can you explain how you’re calling the CLI?
i.e. show us the command you’re running
g
@Matt (pactflow.io / pact-js / pact-go) never mind I was trying a plan B approach! this ie very helpful >>> https://github.com/pact-foundation/pact-workshop-js/tree/step11#step-11---using-a-pact-broker however once I try to run the command at `step11`:
docker-compose up
Copy code
✘ pact-broker Error failed to resolve reference "<http://docker.io/pactfoundation/pact-broker:latest-multi|docker.io/pactfoundation/pact-broker:latest-multi>": failed to au...                    1.5s
✘ postgres Error    failed to resolve reference "<http://docker.io/pactfoundation/pact-broker:latest-multi|docker.io/pactfoundation/pact-broker:latest-multi>": failed to autho...                 1.5s
Error response from daemon: failed to resolve reference "<http://docker.io/pactfoundation/pact-broker:latest-multi|docker.io/pactfoundation/pact-broker:latest-multi>": failed to authorize: failed to fetch oauth token: unexpected status from GET request to <https://auth.docker.io/token?scope=repository%3Apactfoundation%2Fpact-broker%3Apull&service=registry.docker.io>: 401 Unauthorized
is there any missing step or command?
I don’t think it’s a Pact issue, it’s a docker issue
g
Yes, you're right, it doesn't look like it, but thanks anyway! it seems to be working now, since I've just signed out from docker desktop environment
m
Oh wow. So what was the fix, logging out?
g
yes sr 👍