Skip to content

Podman support #116

Closed
Closed

Description

@Raatty

podman is basicly a docker clone, it can even use the same Dockerfiles main difference is it doesnt need root or being in a special group.
https://podman.io

Activity

  1. added
    containers
    feature-request
    on May 4, 2019
  2. paul8046 commented on Aug 5, 2019

    @paul8046

    Ideally all OCI container utilities would be supported. podman, for example, is the default utility for Fedora Silverblue.

  3. changed the title [-]podman support when? [/-] [+]Podman support[/+] on Sep 10, 2019
  4. spgennard commented on Oct 9, 2019

    @spgennard

    Ideally all OCI container utilities would be supported. podman, for example, is the default utility for Fedora Silverblue.

    On the top of the this, "Red Hat 8, Oracle Linux 8" all default to using OCI/podman by default.

  5. efeozazar commented on Nov 1, 2019

    @efeozazar

    Well friends after the latest release of Fedora more and more people need this support. Please make it happen for us humble devs.

  6. mario-d-s commented on Nov 15, 2019

    @mario-d-s

    Not having to make my system easily compromisable by having docker run with root privileges is awesome, that is what Podman gives us. Now, also being able to use tooling that works with this superior way, would be even greater.

  7. thoraxe commented on Feb 20, 2020

    @thoraxe

    There is a package on certain OS that basically makes the docker CLI work via emulation (under the covers it's podman). However, at present it appears that VSCode does some kind of check to validate what version of the docker runtime is installed.

    "Docker version 17.06.1 or later required"

    Maybe we could just add a switch to the plugin to enable validation of Podman's version output. Let me poke at the code here...

  8. chrmarti commented on Feb 21, 2020

    @chrmarti
    Contributor

    Bumped into podman-container-tools/podman#5046 while exploring this. We would need that fixed to run our existing code with the Podman CLI.

    Erik Jacobs (@thoraxe) What package on which OS? Maybe we can change the check on our side to enable this.

  9. mario-d-s commented on Feb 22, 2020

    @mario-d-s

    The main issue is that the extension wants to talk to Docker via its socket, which Podman does not implement currently, although they are working on it: podman-container-tools/podman#4499

  10. chrmarti commented on Mar 9, 2020

    @chrmarti
    Contributor

    I have removed the dependency on dockerode, so we can run with the CLI alone (#2481).

    When trying to attach to an existing container, it now fails due to podman-container-tools/podman#5046 when trying to copy the server bits over.

  11. yajo commented on Mar 12, 2020

    @yajo

    You might find these news interesting: https://podman.io/blogs/2020/01/17/podman-new-api.html

    tl;dr: you will be able soon to use Docker API to interact with podman.

  12. nimashoghi commented on Mar 12, 2020

    @nimashoghi

    Jairo Llopis (@yajo) This is already in libpod as "alpha". Libpod 1.8.1 was released yesterday, and it has updated the HTTP API to add some new features and fix some bugs. See this link for more information.

  13. added
    upstream
    on Mar 23, 2020
  14. 16 remaining items

  15. TerrorJack commented on May 8, 2020

    @TerrorJack

    According to https://github.com/microsoft/vscode-docs/blob/master/remote-release-notes/v1_45.md#podman-support, we only need to set up docker as a symlink to podman.

    One thing is breaking for me when running rootless podman, using a dev container image with non-root user: the postCreateCommand fails to execute when building a fresh dev container, and the result seems to be file permission issue: running touch in the workspace directory results in a Permission denied error. Anyone has clues how to fix this? Thanks.

    Seems relevant: podman-container-tools/podman#2898. It's likely the remote container plugin needs to pass different CLI flags to podman to set this up properly.

  16. angusgyoung commented on May 8, 2020

    @angusgyoung

    Cheng Shao (@TerrorJack) For me this seemed to be a SELinux issue. You can disable SELinux by passing a flag to podman as a run arg. This can be done by adding "runArgs": [ "--security-opt", "label=disable" ] to devcontainer.json.

  17. cryobry commented on May 8, 2020

    @cryobry

    Once you get past that error you'll run into podman-container-tools/podman#6083 when you attempt to launch a remote container.

    It's already fixed in podman-container-tools/podman#6091 upstream but at least on my machine that build isn't returning anything from podman info so this is very much a WIP.

  18. smekkley commented on May 10, 2020

    @smekkley

    Does anybody know if the following issue is solved on next release?
    https://code.visualstudio.com/docs/remote/containers

    However, certain tricks like Docker-in-Docker do not work due to limitations in Podman. This affects the Remote-Containers: Try a Sample... and Remote- Containers: Open repository in container... commands.

    It's not cool that vscode gaining full root in case vscode and rootful docker is running on linux.
    The latest podman also support api socket as well.
    https://github.com/containers/libpod/blob/v1.9.1/docs/source/markdown/podman-system-service.1.md

  19. chrmarti commented on May 11, 2020

    @chrmarti
    Contributor

    Cheng Shao (@TerrorJack) smekkley Could you open an issue with brief steps to reproduce the rootless problem? VS Code doesn't need to run as root, but we might still be missing some details with Podman.

  20. smekkley commented on May 11, 2020

    @smekkley

    Thanks for the reply. I was looking for up-to-date information. The documentation says it has a partial support for podman and I saw this issue was closed, so I thought that what I quoted from the documentation is outdated. With my version, I still have to create symlink to docker. Maybe it's fixed on next release?

    Fedora doesn't come with docker, so it'd be great if there is a git issue to handle this. This git issue seems to have a perfect title.
    As podman experimentally supports tcp socket, vscode can be used for remote containers as well, if it supports it directly.
    One of the use cases would be that you can have one super powerful machine and run rootless podman socket for each user and everyone can have isolated environment.

  21. chrmarti commented on May 12, 2020

    @chrmarti
    Contributor

    smekkley The next release will have a setting where you can configure the name or path of a Docker-compatible CLI. (#2887)

    Remote-Containers does not rely on the tcp socket anymore, it uses only the CLI. Can the CLI be used to achieve the per-user isolation you suggest?

  22. smekkley commented on May 13, 2020

    @smekkley

    When you mention it, I assume that podman supports specifying the socket, so that you can use command line the same way. AFAIK, it's possible through podman remote through ssh. If it's not possible with new podman socket, podman should support it otherwise.
    and then podman in podman solution might be possible by mounting the socket, but for that vscode sample containers feature and etc have to support modifying the podman command line option a little both in and outside the container, and in case of sample docker images, it needs to have podman client.

  23. chrmarti commented on May 14, 2020

    @chrmarti
    Contributor

    smekkley Still working on my Podman expertise, could you open a feature request with more details on how to achieve this?

  24. smekkley commented on May 14, 2020

    @smekkley

    OK. Thanks. But I think we can conclude that the following is not solved yet for anyone who come across this issue.

    However, certain tricks like Docker-in-Docker do not work due to limitations in Podman. This affects the Remote-Containers: Try a Sample... and Remote- Containers: Open repository in container... commands.

  25. PavelSosin-320 commented on May 14, 2020

    @PavelSosin-320

    Docker-in-Docker configuration is officially supported by the Docker because there is an official docid image in the repository called Docker. I think it is right to ask RedHat via GithubHub about official Podma-in-Podman or Podman-in-Docker images. There are too many combinations to check in blind.

  26. chrmarti commented on May 15, 2020

    @chrmarti
    Contributor

    smekkley We are tracking that as #2881.

  27. yajo commented on May 15, 2020

    @yajo

    Fedora doesn't come with docker

    You can install podman-docker in Fedora 32.

    it'd be great if there is a git issue to handle this.

    #2887 seems already fixed.

    I assume that podman supports specifying the socket

    Upstream issue: podman-container-tools/podman#6219

  28. smekkley commented on May 15, 2020

    @smekkley

    Thanks for all the responses. You guys are the most helpful IDE developers.

  29. locked and limited conversation to collaborators on Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

containersplan-item

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions