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
# Image for testing rootless Podman with Stargz Store.
190
+
# This takes the same approach as nerdctl CI: https://github.com/containerd/nerdctl/blob/6341c8320984f7148b92dd33472d8eaca6dba756/Dockerfile#L302-L326
191
+
FROM podman-base AS podman-rootless
192
+
ARG CONTAINERIZED_SYSTEMD_VERSION
193
+
ARG SLIRP4NETNS_VERSION
194
+
RUN apt-get update -y && apt-get install -y \
195
+
systemd systemd-sysv dbus dbus-user-session \
196
+
openssh-server openssh-client uidmap
197
+
RUN curl -o /usr/local/bin/slirp4netns --fail -L https://github.com/rootless-containers/slirp4netns/releases/download/${SLIRP4NETNS_VERSION}/slirp4netns-$(uname -m) && \
This document lists links and information about how to run Stargz Snapshotter and Stargz Store from the non-root user.
4
+
5
+
## nerdctl (Stargz Snapshotter)
6
+
7
+
Rootless Stargz Snapshotter for nerdctl can be installed via `containerd-rootless-setuptool.sh install-stargz` command.
8
+
Please see [the doc in nerdctl repo](https://github.com/containerd/nerdctl/blob/v1.1.0/docs/rootless.md#stargz-snapshotter) for details.
9
+
10
+
## Podman (Stargz Store)
11
+
12
+
> NOTE: This is an experimental configuration leveraging [`podman unshare`](https://docs.podman.io/en/latest/markdown/podman-unshare.1.html). Limitation: `--uidmap` of `podman run` doesn't work.
13
+
14
+
First, allow podman using Stargz Store by adding the following store configuration.
15
+
Put the configuration file to [`/etc/containers/storage.conf` or `$HOME/.config/containers/storage.conf`](https://github.com/containers/podman/blob/v4.3.1/docs/tutorials/rootless_tutorial.md#storageconf).
16
+
17
+
> NOTE: Replace `/path/to/home` to the actual home directory.
BuildKit supports running Stargz Snapshotter from the non-root user.
56
+
Please see [the doc in BuildKit repo](https://github.com/moby/buildkit/blob/8b132188aa7af944c813d02da63c93308d83cf75/docs/stargz-estargz.md) (unmerged 2023/1/18) for details.
0 commit comments