Package Details: docker-rootless-extras 27.3.1-1

Git Clone URL: https://aur.archlinux.org/docker-rootless-extras.git (read-only, click to copy)
Package Base: docker-rootless-extras
Description: Extras to run docker as non-root.
Upstream URL: https://docs.docker.com/engine/security/rootless/
Keywords: containers docker isolation rootless
Licenses: Apache
Conflicts: docker-rootless, docker-rootless-extras, docker-rootless-extras-bin
Provides: docker-rootless, docker-rootless-extras, docker-rootless-extras-bin
Submitter: whynothugo
Maintainer: the-k
Last Packager: the-k
Votes: 32
Popularity: 0.74
First Submitted: 2021-04-14 17:58 (UTC)
Last Updated: 2024-09-21 08:47 (UTC)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

snale commented on 2023-03-07 22:52 (UTC)

Hey, I had to modify the $MAINPID patch to silence some warnings in the systemd user daemon:

commit b401915a78b80e8be093f536dda3f4aeb41ffaf6 (HEAD -> master)
Author: Sebastián Claudio Nale <sebinale@gmail.com>
Date:   Tue Mar 7 19:43:18 2023 -0300

    Fix `$MAINPID` patch.

diff --git a/PKGBUILD b/PKGBUILD
index 9d52d62..ce332e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,7 +39,7 @@ package() {
     head -n-1 | \
     sed 's/^[[:space:]]*//' | \
     sed 's|$BIN|/usr/bin|' | \
-    sed 's|\$MAINPID|$MAINPID|' | \
+    sed 's|\\$MAINPID|$MAINPID|' | \
     sed 's| $DOCKERD_ROOTLESS_SH_FLAGS||' \
     > "$pkgdir/usr/lib/systemd/user/docker.service"


whynothugo commented on 2022-11-23 19:46 (UTC)

Updated, thanks.

leuko commented on 2022-11-23 16:27 (UTC)

I can confirm @cafce25. I get:

$ docker ps -a
Cannot connect to the Docker daemon at unix:///run/user/1000/docker.sock. Is the docker daemon running?

without slirp4netns. Why is slirp4netns optional?

cafce25 commented on 2022-10-11 21:11 (UTC)

I tried to install this today, but as it is it fails to start cause it can't find either vpnkit or slirp4netns. I think vpnkit was at one point provided with this package but is no longer? For now installing slirp4netns package works for me.

whynothugo commented on 2022-05-11 10:03 (UTC)

The only binary file in this package is vpnkit. I'm considering splitting that out into an optional dependency, and then merging this into docker-rootless-extras.

The distinction between this and the non-bin package is pointless, this this package is mostly shell files that don't require any building.

Stebalien commented on 2022-04-29 09:00 (UTC)

@whynothugo I've added you as a comaintainer (just in case).

Stebalien commented on 2022-04-29 08:59 (UTC)

Well, that was careless of me. Fixed.

I've also changed the PKGBUILD to version the downloaded script so I don't make this mistake again.

whynothugo commented on 2022-04-28 22:46 (UTC) (edited on 2022-04-28 22:47 (UTC) by whynothugo)

Odd:

Pushing to ssh://aur.archlinux.org/docker-rootless-extras.git
Confirm user presence for key ED25519-SK SHA256:Ewjm142eXtQFsgCw8WilMpgdu9IN8h6iwyJydf475E4
User presence confirmed
git-receive-pack: permission denied: whynothugo
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Here's a patch if you're in a hurry:

commit 95ba6e38765509c1072d213159284e02fcf9b125 (HEAD -> master)
Author: Hugo Osvaldo Barrera <hugo@barrera.io>
Date:   Fri Apr 29 00:42:08 2022 +0200

    Avoid using old, cached versions on rebuilds

diff --git a/.SRCINFO b/.SRCINFO
index f8dbcde..da0cb9c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = docker-rootless-extras
    pkgdesc = Extras to run docker as non-root.
    pkgver = 20.10.14
-   pkgrel = 1
+   pkgrel = 2
    url = https://docs.docker.com/engine/security/rootless/
    install = docker-rootless-extras.install
    arch = x86_64
@@ -11,11 +11,11 @@ pkgbase = docker-rootless-extras
    depends = rootlesskit
    optdepends = fuse-overlayfs: overlayfs support
    optdepends = slirp4netns: faster network stack
-   source = https://raw.githubusercontent.com/moby/moby/v20.10.14/contrib/dockerd-rootless.sh
+   source = dockerd-rootless-20.10.14.sh::https://raw.githubusercontent.com/moby/moby/v20.10.14/contrib/dockerd-rootless.sh
    source = docker.service
    source = docker.socket
    source = 99-docker-rootless.conf
-   sha256sums = 91cc2aa9fb386fb4f8d9e73218c0623ddb4dd4fdee9946b81f8392651252d1dd
+   sha256sums = 07fd43a5adad652bb9d15d5cec851c0f563fe1cf8c5f0d5123b45b0e118404dd
    sha256sums = 7c31c7f7755776bf9571e551ff4006035562e4394d88166809dd71b2ba847fc5
    sha256sums = d8695293e5d4a814763f13e1d36ed37273040666b4b91363d6c33171df8934c7
    sha256sums = d0d790d4c3d887b10b2b155b83a58a44980b9fa638f8c0f1faec0739dc0ef473
diff --git a/PKGBUILD b/PKGBUILD
index 6f50c5a..44da898 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=docker-rootless-extras
 pkgver=20.10.14
-pkgrel=1
+pkgrel=2
 pkgdesc="Extras to run docker as non-root."
 arch=('x86_64' 'aarch64')
 url="https://docs.docker.com/engine/security/rootless/"
@@ -12,18 +12,18 @@ optdepends=('fuse-overlayfs: overlayfs support'
             'slirp4netns: faster network stack')
 install=$pkgname.install
 source=(
-        "https://raw.githubusercontent.com/moby/moby/v${pkgver}/contrib/dockerd-rootless.sh"
+        "dockerd-rootless-$pkgver.sh::https://raw.githubusercontent.com/moby/moby/v${pkgver}/contrib/dockerd-rootless.sh"
         "docker.service"
         "docker.socket"
         "99-docker-rootless.conf")
-sha256sums=('91cc2aa9fb386fb4f8d9e73218c0623ddb4dd4fdee9946b81f8392651252d1dd'
+sha256sums=('07fd43a5adad652bb9d15d5cec851c0f563fe1cf8c5f0d5123b45b0e118404dd'
             '7c31c7f7755776bf9571e551ff4006035562e4394d88166809dd71b2ba847fc5'
             'd8695293e5d4a814763f13e1d36ed37273040666b4b91363d6c33171df8934c7'
             'd0d790d4c3d887b10b2b155b83a58a44980b9fa638f8c0f1faec0739dc0ef473')


 package() {
-  install -Dm755 "$srcdir/dockerd-rootless.sh" "$pkgdir/usr/bin/dockerd-rootless.sh"
+  install -Dm755 "$srcdir/dockerd-rootless-$pkgver.sh" "$pkgdir/usr/bin/dockerd-rootless.sh"
   install -Dm644 "$srcdir/docker.service" "$pkgdir/usr/lib/systemd/user/docker.service"
   install -Dm644 "$srcdir/docker.socket" "$pkgdir/usr/lib/systemd/user/docker.socket"
   install -Dm644 "$srcdir/99-docker-rootless.conf" "$pkgdir/usr/lib/sysctl.d/99-docker-rootless.conf"

gamezelda commented on 2022-04-28 22:34 (UTC)

The checksum should be changed after the update to 20.10.14.

Stebalien commented on 2022-04-28 17:52 (UTC)

@whynothugo thanks!