Package Details: docker-rootless-extras-bin 20.10.6-3

Git Clone URL: (read-only, click to copy)
Package Base: docker-rootless-extras-bin
Description: Extras to run docker as non-root.
Upstream URL:
Keywords: containers docker isolation rootless
Licenses: Apache
Conflicts: docker-rootless, docker-rootless-extras
Provides: docker-rootless, docker-rootless-extras
Submitter: whynothugo
Maintainer: whynothugo
Last Packager: whynothugo
Votes: 14
Popularity: 0.65
First Submitted: 2020-12-18 18:42
Last Updated: 2021-06-14 22:24

Latest Comments

1 2 3 4 5 6 Next › Last »

fabwu commented on 2021-06-21 08:01

Here's a fix:

diff --git a/PKGBUILD b/PKGBUILD
index 2e9c2eb..222a083 100644
@@ -16,23 +16,27 @@ provides=('docker-rootless' 'docker-rootless-extras')
 conflicts=('docker-rootless' 'docker-rootless-extras')
-       "$arch/docker-rootless-extras-$pkgver.tgz"
+       "$pkgver.tgz"
+       "$pkgver.tgz"

-       'ac4d55e87efa1eec306a91f655d8ae00339be5f631b8b41c10d5c588a3cf0473'
+       'ac4d55e87efa1eec306a91f655d8ae00339be5f631b8b41c10d5c588a3cf0473'
-       '7c31c7f7755776bf9571e551ff4006035562e4394d88166809dd71b2ba847fc5'
-       'd8695293e5d4a814763f13e1d36ed37273040666b4b91363d6c33171df8934c7'
-       'd0d790d4c3d887b10b2b155b83a58a44980b9fa638f8c0f1faec0739dc0ef473'

 package() {

Ah and could you either use tabs or spaces but not both?

Thanks and keep up the good work!

maximaman commented on 2021-06-19 21:22

The build fails again with a checksum error:

==> ERROR: Integrity checks (sha256) differ in size from the source array.

whynothugo commented on 2021-06-14 22:24

Fixed, thanks.

maximaman commented on 2021-06-14 21:49

Besides the checksum error, some of the files as currently packaged conflict with the docker-rootless and docker-rootless-bin packages: rootlesskit and rootlesskit-docker-proxy are already installed by these packages. The rm invocation at the end removes rootlesskit but not rootlesskit-docker-proxy. This causes a conflict between rootlesskit and docker-rootless-extras-bin.

I'd suggest that we remove the rm invocation and only copy the non-conflicting files in $srcdir/docker-rootless-extras into the $pkgdir, like this:

diff --git a/PKGBUILD b/PKGBUILD
index 93856d5..0232d7a 100644
@@ -38,11 +38,10 @@ sha256sums_aarch64=(
 package() {
        mkdir -p "$pkgdir/usr/bin/"

-       install -Dm755 "$srcdir/docker-rootless-extras/"* "$pkgdir/usr/bin/"
+       install -Dm755 "$srcdir/docker-rootless-extras/" "$pkgdir/usr/bin/"
+       install -Dm755 "$srcdir/docker-rootless-extras/" "$pkgdir/usr/bin/"
+       install -Dm755 "$srcdir/docker-rootless-extras/vpnkit" "$pkgdir/usr/bin/"
        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"
-        # Delete files provided by `rootlesskit`.
-       rm "$pkgdir/usr/bin/rootlessctl" "$pkgdir/usr/bin/rootlesskit"

gamezelda commented on 2021-06-05 16:47

I also get the checksum error when running makepkg.

After looking at the ArchWiki and the source of makepkg a bit I think the correct syntax is:

source=(...the 3 common files...)
source_x86_64=(...the x86_64 specific file...)
source_aarch64=(...the aarch64 specific file...)

sha256sums=(...the checksums for the 3 common files...)
sha256sums_x86_64=(...the checksum for the x86_64 specific file...)
sha256sums_aarch64=(...the checksum for the aarch64 specific file...)

Also, at first sight I don't think the aarch64 build is going to work, since using $arch is going to always give you the first element of the arch array = x86_64.

whynothugo commented on 2021-05-28 20:07

As far as I understand, merely enabling kernel.unprivileged_userns_clone makes vulnerabilities more exploitable, they don't necessarily have to be vulnerabilities in docker or podman.

MartinX3 commented on 2021-05-27 17:30

@psvoboda @whynothugo While it uses kernel.unprivileged_userns_clone=1, it's far more secure than docker. Podman doesn't use a Client/Server architecture with a root daemon. Also it got developed with rootless mode in mind. Docker-Rootless got added many years later as an still experimental addon.

You could say Docker is the Dinosaur from 2013 where there trying to fix their architecture and Podman the Homo Sapiens Sapiens from 2019.

Here you can read more about it

whynothugo commented on 2021-05-27 16:41

That's correct, podman rootless depends on the samething.

Docker-as-root might be best, with some features (priviledged, etc) disabled. I've been looking into writing a plugin that disabled such features, but it's... hard.

psvoboda commented on 2021-05-27 15:04

@MartinX3 Podman in rootless mode has the same serious security implications since it relies on kernel.unprivileged_userns_clone=1 as well, doesn't it?

MartinX3 commented on 2021-05-26 18:58

If you're a security aware user, I recommend

to build containers:

to run containers: Podman also has podman-compose

Or if you have a network of several servers: