You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of Dev Containers v0.399 there is no
need to update a devcontainers.json to make it work
with Podman (c.f. microsoft/vscode-remote-release#10706).
And commands like “Dev Containers: Try a Dev Container Sample”
and “Dev Containers: Clone Repository in Container Volume…”
that used to fail with Podman are now fixed (c.f. microsoft/vscode-remote-release#10706)
Also some informations in the documentation were outdated:
- Podman isn't Linux-only but currently supports Windows and macOS too
- Podman allows Docker-from-Docker now (in both rootless in rootful mode)
- Podman supports both Docker-Compose and Podman-Compose (with a
priority for Docker-Compose)
Signed-off-by: Mario Loriedo <[email protected]>
Copy file name to clipboardExpand all lines: remote/advancedcontainers/docker-options.md
+8-23Lines changed: 8 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,14 @@ Colima automatically sets up a `colima` [Docker context](https://docs.docker.com
37
37
38
38
> Note: Colima uses Alpine Linux, which isn't supported by Remote - SSH.
39
39
40
+
## Podman
41
+
42
+
[Podman](https://podman.io/) 5+ is mostly compatible with Docker's CLI commands and therefore does work if you update the **Docker Path** setting (via **Dev > Containers: Docker Path** in the Settings editor) to `podman` on Linux, Windows or macOS.
Podman has a [`podman compose` command](https://docs.podman.io/en/latest/markdown/podman-compose.1.html) too but that requires a compose provider that can be either Docker Compose or [Podman Compose](https://github.com/containers/podman-compose).
47
+
40
48
## Linux
41
49
42
50
If you're using Linux on your local machine, or already have a remote Linux machine with SSH access, you can reference the [Docker documentation](https://docs.docker.com/engine/install/) for installing Docker on Linux, with [specific information per distribution](https://docs.docker.com/engine/install/centos/).
@@ -87,29 +95,6 @@ az vm create \
87
95
88
96
You can learn more about using Remote - SSH with Dev Containers in the [develop on a remote Docker host](https://code.visualstudio.com/remote/advancedcontainers/develop-remote-host#_connect-using-docker-contexts) documentation.
89
97
90
-
### Podman
91
-
92
-
[Podman](https://podman.io/) 1.9+ is mostly compatible with Docker's CLI commands and therefore does work if you update the **Docker Path** setting (via **Dev > Containers: Docker Path** in the Settings editor) to `podman` on Linux.
However, certain tricks like [Docker-from-Docker do not work](https://github.com/containers/libpod/issues/4056#issuecomment-535511841) due to limitations in Podman. This affects the **Dev Containers: Try a Dev Container Sample...** and [Dev Containers: Clone Repository in Container Volume...](/docs/devcontainers/containers.md#quick-start-open-a-git-repository-or-github-pr-in-an-isolated-container-volume) commands.
97
-
98
-
To work around issues with rootless Podman (for example, not respecting a non-root `"remoteUser"` and trying to install the server in `root`), you can set the following:
99
-
100
-
```json
101
-
"runArgs": [
102
-
"--userns=keep-id"
103
-
],
104
-
"containerEnv": {
105
-
"HOME": "/home/node"
106
-
}
107
-
```
108
-
109
-
`"remoteUser"`can be used when `"HOME"` is set because Dev Containers gives that setting precedence over the home folder it finds in `/etc/passwd`.
110
-
111
-
Podman also has its own implementation of the Compose Spec with [Podman Compose](https://github.com/containers/podman-compose).
112
-
113
98
## Other container engines
114
99
115
100
You can open or review requests for support for other container engines through the [vscode-remote-release repository](https://github.com/microsoft/vscode-remote-release). There are already several feature requests you can explore:
0 commit comments