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 support #34

Open
l0rd opened this issue Apr 18, 2023 · 5 comments
Open

Podman support #34

l0rd opened this issue Apr 18, 2023 · 5 comments
Labels
enhancement New feature or request podman

Comments

@l0rd
Copy link

l0rd commented Apr 18, 2023

Problem Description

When trying to run podman on a host where I have started kubedock I get the following error

$ podman --remote --url "tcp://127.0.0.1:2475" run --name httpd -d -p 8080:8080 python python -m http.server 8080
Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman socket: ping response was 404

And from kubedock logs

image

How to reproduce it

The issue can be reproduced on OpenShift Developer Sandbox (a Red Hat Developer account is required but it's free) using the following link: https://workspaces.openshift.com/f?url=https://github.com/l0rd/micronaut-sample

Video recording

2023-04-18.23.59.20.mp4
@joyrex2001 joyrex2001 added the enhancement New feature or request label Apr 20, 2023
@joyrex2001
Copy link
Owner

Initial work has been started where podman routes can be implemented here, adjacent to the docker api implementation.

@l0rd
Copy link
Author

l0rd commented May 2, 2023

Initial work has been started where podman routes can be implemented here, adjacent to the docker api implementation.

Amazing. I have been testing a simple podman run and the pod got created successfully. I have also tested with podman run -ti busybox and podman run -d -P httpd but the first didn't start and the second didn't expose any port (which is perfectly fine for an initial support).

@joyrex2001
Copy link
Owner

I just released 0.11.0 which supports:

  • podman run (with port mappings and volumes, not interactive mode)
  • podman ps (does not show mapped ports)
  • podman exec (not interactive mode)
  • podman cp (gives an error when copying from container to host, but did the actual copy)
  • podman logs, inspect, kill, rm, wait, stop, start

@agiertli
Copy link

Hi @joyrex2001

I noticed that 'podman generate kube' didn't work with kubedock. Kubedock logs showed 404, which suggests the feature is simply not implemented.

Since this GH issue is about general podman support, would it be OK to add "podman generate kube" requirement as part of this ticket?

@joyrex2001
Copy link
Owner

@agiertli yes, makes sense to track it in this ticket (sorry for the late reply).

I just released 0.13.0, which means for podman support:

  • added support for podman exec interactive mode
  • added support for podman restart
  • fixed podman cp error
  • fixed podman ps ports

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

No branches or pull requests

3 participants