microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.71k stars 1.41k forks source link

Podman-in-docker installation script #1042

Open johanbrandhorst opened 3 years ago

johanbrandhorst commented 3 years ago

We have scripts for docker-from-docker and docker-in-docker, but now that Docker Inc has decided it's time to pay it would be cool to investigate whether we could run podman as a docker replacement within our Dev containers. The answer is of course yes, but it would be great to have a script like podman-in-docker for setting up a nice working environment using podman.

Relates to: Both

Chuxel commented 3 years ago

FYI - Licensing for Docker CE on Linux has not changed. So the "docker-in" part is not affected by the Docker Desktop announcement. Please open an issue in https://github.com/microsoft/vscode-remote-release for podman support in Remote - Containers if that is the part you are looking for (rather than the inner Docker engine).

johanbrandhorst commented 3 years ago

Sorry, I meant to say podman-in-docker consistently. I have edited the original description. Regardless of the licensing situation, it would be nice to have a podman environment script if you are using podman elsewhere because of the licensing changes. Is this not the right repository for this sort of request?

Chuxel commented 3 years ago

Yeah for using podman inside a dev container, this is the spot. Just making sure you didn't mean the inverse. 😄

PavelSosin-320 commented 3 years ago

@johanbrandhorst How to ... . I don't think that somebody knows it better. You can ask them. Running Podman is OK. If you have Podman installed you can use buildah: buildah from dev container && buildah run apt install and finally buildah commit. Running container runtimes runc, crun, cri-o kata, ... inside each other ?????

juzuluag commented 2 years ago

Hi, The team that I'm working with is interested in this enhancement and I have couple of questions:

Chuxel commented 2 years ago

@juzuluag Might be worth explaining a bit what you are looking to do here. The proposed script here, if contributed, would install podman in an Linux container image for use. You'd still need a host the dev container in something on macOS or Linux.