Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman guide for Linux is incorrect #40768

Closed
peter-777 opened this issue May 22, 2024 · 1 comment · Fixed by #40753
Closed

Podman guide for Linux is incorrect #40768

peter-777 opened this issue May 22, 2024 · 1 comment · Fixed by #40753
Labels
area/container-image kind/bug Something isn't working
Milestone

Comments

@peter-777
Copy link

Describe the bug

After following the guide to enable the Podman socket and exporting the environment variables, an error occurs when starting quarkus dev.

I found that it is necessary to prepend 'unix:' when setting the environment variables.
When executing the following command, the startup proceeds without issues:
export DOCKER_HOST=$(podman info --format 'unix:{{.Host.RemoteSocket.Path}}')

Expected behavior

Testcontainers can be used with quarkus dev without any errors occurring.

Actual behavior

The following error occurs, causing the startup of quarkus dev to fail.
I have removed the PATH from the logs.

2024-05-22 15:27:25,334 INFO  [org.tes.doc.DockerMachineClientProviderStrategy] (build-55) docker-machine executable was not found on PATH ([...])
2024-05-22 15:27:25,341 ERROR [org.tes.doc.DockerClientProviderStrategy] (build-55) Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
        EnvironmentAndSystemPropertyClientProviderStrategy: failed with exception NullPointerException (Cannot invoke "String.hashCode()" because "<local5>" is null)
        UnixSocketClientProviderStrategy: failed with exception InvalidConfigurationException (Could not find unix domain socket). Root cause NoSuchFileException (/var/run/docker.sock)
        DockerDesktopClientProviderStrategy: failed with exception NullPointerException (Cannot invoke "java.nio.file.Path.toString()" because the return value of "org.testcontainers.dockerclient.DockerDesktopClientProviderStrategy.getSocketPath()" is null)As no valid configuration was found, execution cannot continue.
See https://java.testcontainers.org/on_failure.html for more details.
2024-05-22 15:27:25,334 INFO  [org.tes.doc.DockerMachineClientProviderStrategy] (build-55) docker-machine executable was not found on PATH ([...])

2024-05-22 15:27:25,341 ERROR [org.tes.doc.DockerClientProviderStrategy] (build-55) Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
        EnvironmentAndSystemPropertyClientProviderStrategy: failed with exception NullPointerException (Cannot invoke "String.hashCode()" because "<local5>" is null)
        UnixSocketClientProviderStrategy: failed with exception InvalidConfigurationException (Could not find unix domain socket). Root cause NoSuchFileException (/var/run/docker.sock)
        DockerDesktopClientProviderStrategy: failed with exception NullPointerException (Cannot invoke "java.nio.file.Path.toString()" because the return value of "org.testcontainers.dockerclient.DockerDesktopClientProviderStrategy.getSocketPath()" is null)As no valid configuration was found, execution cannot continue.
See https://java.testcontainers.org/on_failure.html for more details.

2024-05-22 15:27:25,366 WARN  [io.qua.dep.IsDockerWorking] (build-55) Unable to parse DOCKER_HOST URI /run/user/1000/podman/podman.sock, it will be ignored for working Docker detection

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

21

Quarkus version or git rev

3.10.1

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.7

Additional information

No response

@gastaldi
Copy link
Contributor

Fixed in #40753

@gsmet gsmet added this to the 3.11.1 milestone Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/container-image kind/bug Something isn't working
Projects
None yet
4 participants