You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running quarkus integration tests with docker-in-docker by mounting docker executable. However, rest assured in the @QuarkusIntegrationTest can't connect to the local host,
org.tes.doc.DockerClientProviderStrategy] Found Docker environment with local Unix socket (unix:///var/run/docker.sock)
org.tes.DockerClientFactory] Docker host IP address is 172.18.1.1
org.tes.DockerClientFactory]) Connected to docker:
Request method: GET
Request URI: http://localhost:40700/health
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
Thanks for help!
How can I change the rest assured base host to the docker host IP address so that rest assured can connect to it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running quarkus integration tests with docker-in-docker by mounting docker executable. However, rest assured in the
@QuarkusIntegrationTest
can't connect to the local host,[io.qua.tes.com.DefaultDockerContainerLauncher] (main) Executing "docker run --name quarkus-integration-test-Oecng -i --rm -p 40700:40700-p 8444:8444 --net=quarkus-integration-test-vUBbR --env QUARKUS_LOG_CATEGORY__IO_QUARKUS__LEVEL=INFO --env QUARKUS_HTTP_PORT=40700 --env QUARKUS_HTTP_SSL_PORT=8444 --env TEST_URL=http://0.0.0.0:0 --env QUARKUS_OTEL_SDK_DISABLED=true --env QUARKUS_LOG_HANDLER_GELF_ENABLED=false --env QUARKUS_CONFIGURATION_BUILD_TIME_MISMATCH_AT_RUNTIME=fail --env QUARKUS_LOG_FILE_LEVEL=INFO --env QUARKUS_LOG_CONSOLE_ENABLE=true root/app:100.0.0-SNAPSHOT"
Rest Assured log:
Thanks for help!
How can I change the rest assured base host to the docker host IP address so that rest assured can connect to it?
Beta Was this translation helpful? Give feedback.
All reactions