Ivan Mikhalka
07/04/2023, 9:16 PM/usr/lib/ruby/3.0.0/net/http.rb:987:in `initialize': Failed to open TCP connection to <http://xyz.pactflow.io:443|xyz.pactflow.io:443> (getaddrinfo: Try again) (SocketError)
when trying to publish pact via docker CLI?
Command:
docker run --rm -w ${PWD} -v ${PWD}:${PWD} --network bridge -e PACT_DO_NOT_TRACK -e PACT_BROKER_BASE_URL \
-e PACT_BROKER_TOKEN pactfoundation/pact-cli:latest pact-broker publish "${PWD}/pactFiles/" --consumer-app-version=1234 --tag=branchName --branch=branchName
Ivan Mikhalka
07/04/2023, 9:17 PMIvan Mikhalka
07/04/2023, 9:27 PMTimothy Jones
07/05/2023, 4:41 AMIvan Mikhalka
07/05/2023, 7:25 AMIvan Mikhalka
07/05/2023, 7:25 AMTimothy Jones
07/05/2023, 7:57 AMIvan Mikhalka
07/05/2023, 8:42 AMYousaf Nabi (pactflow.io)
--network bridge
optionYousaf Nabi (pactflow.io)
I used to use similar command previously on my PC, without any problemLinux / Windows? They all use different networking setups for Docker, as Docker is only native on Linux, other platforms are a cludge
Ivan Mikhalka
07/05/2023, 1:46 PMPS: I am on Mac IntelI used to use same config before
Ivan Mikhalka
07/05/2023, 1:46 PMIvan Mikhalka
07/05/2023, 1:46 PMYousaf Nabi (pactflow.io)
Ivan Mikhalka
07/10/2023, 8:57 AM