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
bootBuildImage with Podman results in socket connection error #40127
Comments
When you run
On my machine, by default, the socket is not there, as the systemd
Does that help? |
@mhalbritter according to my understanding it should be started automatically when invoked. But I am not an expert in the domain. If this is a pre-requisite to start Podman service manually, it could be useful to document that in Spring Boot plugin documentation. |
It depends on the configuration of your Linux distribution. There's a unit named Maybe we need to update the documentation. What do you think, @scottfrederick ? |
Also @mhalbritter, that's another issue but after starting the socket as you suggested using |
the |
Hm, to rule that out, you could run
in a terminal, and then try |
@mhalbritter Thx for the help. I can see from the console that it seems looping.
And the process never stops. |
Then something is wrong with your installation. This is nothing we as the Spring Boot team could fix. |
@mhalbritter I agree with you 👍 . Still the documentation update seems relevant to me :). |
Connection to the Docker daemon at '/run/user/1001/podman/podman.sock' failed with error
We've decided to document this on a wiki page in the Spring Boot GitHub repository, instead of trying to maintain something like this in the documentation. See https://github.com/spring-projects/spring-boot/wiki/Building-OCI-Images-with-Spring-Boot#podman-socket-availability. Feel free to comment here with feedback on this documentation. |
Problem
I cannot build a docker image using
bootBuildImage
. I have configured the task according to the documentation:This results in the following error:
> Connection to the Docker daemon at '/run/user/1001/podman/podman.sock' failed with error "[2] No such file or directory"; ensure the Docker daemon is running and accessible
Podman is working fine I can run the following command:
podman ps
with no error and start containers.When building with docker runtime I have no issue.
Versions
Spring Boot Version: 3.2.4
Podman Version: 4.3.1
Operating System: Ubuntu 23.10
Kernel: Linux 6.5.0-26-generic
Architecture: x86-64
Hardware Vendor: Dell Inc.
The text was updated successfully, but these errors were encountered: