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

Test: Podman support #2854

Closed
2 tasks done
chrmarti opened this issue Apr 27, 2020 · 14 comments
Closed
2 tasks done

Test: Podman support #2854

chrmarti opened this issue Apr 27, 2020 · 14 comments

Comments

@chrmarti
Copy link
Contributor

chrmarti commented Apr 27, 2020

Ref - #116

Complexity: 4


Install the latest version (to get a fix in conmon >= 2.0.14 containers/podman#5046 (comment)) of Podman on Linux and add a symlink docker -> podman to the PATH.

Run the Smoke-Test (https://github.com/microsoft/vscode-remote-release/wiki/Remote-Containers-Smoke-Test) ignoring the Docker Compose part (not supported with Podman at the moment) and test basic operations using Remote-Containers commands and the Remote Explorer.

@weinand
Copy link

weinand commented Apr 29, 2020

@chrmarti how do you install podman >= 2.0.14 on Ubuntu 18.04 LTE or 19.10 (on Parallels)?
I'm trying this for hours now...

@weinand
Copy link

weinand commented Apr 29, 2020

Giving up on installing podman 2.0.14.
Will test with podman 1.9.0

@chrmarti
Copy link
Contributor Author

@weinand Sorry, it's conmon that needs to have version 2.0.14 or later. Podman 1.9.0 should work.

@PavelSosin-320
Copy link

PavelSosin-320 commented May 11, 2020

@chrmarti
Unfortunately, docker service provider resolution is not so simple: the same machine can have several providers:
docker, if neither podman is installed nor kubernetes orchestration is enabled - port 2375 or port 2376
podman, if podman is installed and docker is suppressed port ???
kuberenetes if it is enabled in the Docker Desktop settings or minikube is installed - port 6443
openshift from the same source as podman, RHEL, and widely used in Enterprise.
maybe docker swarm - port 2375/2376 ?
Nothing can prevent the installation of all 3 on the same machine. They don't conflict. Every CLI looks at its own dot file in the User-profile folder. It is a user preference for what to use.

@chrmarti
Copy link
Contributor Author

@PavelSosin-320 #2887 will make the name and path of the Docker executable configurable so you can configure podman there. That will only work for Docker CLI compatible CLIs of course.

@Nuc1eoN
Copy link

Nuc1eoN commented Jun 12, 2020

I've got rootless podman working on archlinux, along with the package podman-docker which symlinks docker to podman I guess.

However vscode stil wouldn't recognize my config, saying "Failed to connect. Is Docker running?"

Is there something I'm missing?

@chrmarti
Copy link
Contributor Author

@Nuc1eoN Check what is in the log (F1 > Remote-Containers: Show Log). There is now also a setting for the Docker executable where you can set podman, with that you don't need podman-docker anymore.

Please open a new issue if this is not working as expected. 👍

@Nuc1eoN
Copy link

Nuc1eoN commented Jun 12, 2020

@chrisdias Remote-Containers: Show Log doesnt exist for me. Do I need a special setup?
Never used docker/podman through vscode, so I might be totally missing something 🤔

@chrisdias
Copy link
Member

@chrmarti see above ^^

@chrmarti
Copy link
Contributor Author

@Nuc1eoN Make sure you are using the latest version of VS Code (1.46) and have the Remote-Containers extension installed (version 0.117.1).

@Nuc1eoN
Copy link

Nuc1eoN commented Jun 15, 2020

@chrisdias Remote-Containers: Show Log gives me an empty terminal with no output.
Remote-Containers: Settings shows the error:

Command 'Remote-Containers: Settings' resulted in an error (command 'remote-containers.settings' not found)

Extension and VS Code on latest versions.

@Nuc1eoN
Copy link

Nuc1eoN commented Jun 15, 2020

Anyways do I even need the extension?
I am trying to make the built-in functionailty work for now:
image

@PavelSosin-320

This comment has been minimized.

@chrmarti
Copy link
Contributor Author

That's the Docker extension, please open an issue for them including the value you set for docker.host. Thanks.

Open issue here: https://github.com/microsoft/vscode-docker/issues

@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants