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

Compatibility with podman #730

Open
marschal opened this issue May 11, 2023 · 5 comments
Open

Compatibility with podman #730

marschal opened this issue May 11, 2023 · 5 comments

Comments

@marschal
Copy link

Hi, this is rather a question or a feature request.

Are there plans to be podman compliant too? dockerode basically works with podman, except the port exposing of spawned containers. While using docker the containers have their ports open, in podman they don't (when creating using dockerode).

Best

@apocas
Copy link
Owner

apocas commented May 22, 2023

Interesting do you have any more details?

@marschal
Copy link
Author

@apocas Sure. Let me provide some additional Information. I was using dockerode for quite a long time in a JS + docker-based web application to create and interact with containers. I basically used dockerode to do things like create, start, stop, delete containers, but also to expose ports (so that docker/podman auto-allocate the port on the host, thus dynamic bindings) and configure environment variables, volume mappings and such during container creation.

According to redhat, podman should be API compatible with docker, thus I tried creating containers via dockerode on a podman backend. I noticed that it works in general, except the issue, that no port is exposed on the created podman container. Thus it looks like some incompatibility at some point. Unfortunately I could not debug deeper. This might also be just one incompatibility with podman.

@drew2g
Copy link

drew2g commented Oct 10, 2023

Was going to try to swap to podman but came across this. Has this been resolved recently or is there still some work to be done on it?

@apocas
Copy link
Owner

apocas commented Oct 10, 2023

There are multiple projects using dockerode with podman, example: https://github.com/containers/podman-desktop/blob/main/package.json#L151

Not sure if this exact issue still exist nowadays :)

@laurensV
Copy link

Also couldn't manage to enable gpu support with podman through the docker api, as it seems to not do anything with DeviceRequests.. anyone know how to enable gpu support through dockerode/docker api?

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

No branches or pull requests

4 participants