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

Support Podman #196

Closed
danielhollas opened this issue Dec 8, 2023 · 2 comments · Fixed by #197
Closed

Support Podman #196

danielhollas opened this issue Dec 8, 2023 · 2 comments · Fixed by #197
Assignees
Labels
enhancement New feature or request

Comments

@danielhollas
Copy link
Contributor

Fedora linux comes with Podman pre-installed, might be nice to support it. AFAIK Podman tries to have compatible API with Docker so hopefully this will not be too much work.

Currently, I am getting this error:

Connecting to docker host... 
Unable to communicate with docker on this host. This error usually
indicates that Docker is either not installed on this system, that the
docker service is not started, or that the installation is ill-
configured.  Please follow the instructions at
https://docs.docker.com/get-docker/ to install and start docker.

Podman has its own Python API, podman-py, but according to this issue, docker-py that we use here should work as well. I'll take a closer look.

@unkcpz in case you have any experience with Podman, I'd appreciate your thoughts.

@danielhollas danielhollas added the enhancement New feature or request label Dec 8, 2023
@danielhollas danielhollas self-assigned this Dec 8, 2023
@unkcpz
Copy link
Member

unkcpz commented Dec 8, 2023

In the issue you linked it says "if can just use docker-py and point it to the podman system service (socket)."

I guess you need run something as export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock to point docker python API to find podman socket to interact.

I don't have experience with podman, but I agree it should be straightforward to support.

@danielhollas
Copy link
Contributor Author

I guess you need run something as export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock to point docker python API to find podman socket to interact.

Oh, that is very good to know, thanks! Now I am getting permission error, but that should be resolvable without changes to aiidalab-launch. I will report back once I get it working and we can extend documentation.

Error: Failed to communicate with Docker client: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants