From 8751f26cbe48426d15eb52db878963a201a29c2b Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Sun, 18 Aug 2024 02:05:49 +0900 Subject: [PATCH] Deprecate rootlesskit-docker-proxy (no longer needed since Docker v28) The rootlesskit-docker-proxy binary is no longer needed since Docker v28, as the functionality of rootlesskit-docker-proxy is now provided by dockerd itself. https://github.com/moby/moby/pull/48132/commits/dac7ffa3404138a4f291c16586e5a2c68dad4151 rootlesskit-docker-proxy will be removed in RootlessKit v3. Signed-off-by: Akihiro Suda --- Makefile | 2 ++ README.md | 2 +- cmd/rootlesskit-docker-proxy/main.go | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 14bc8245..808c2d34 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,8 @@ bin/rootlessctl: $(GO_FILES) $(GO) build -o $@ -v ./cmd/rootlessctl bin/rootlesskit-docker-proxy: $(GO_FILES) + @echo "NOTE: rootlesskit-docker-proxy is required only if you use Docker prior to v28." + @echo "NOTE: rootlesskit-docker-proxy is DEPRECATED and will be removed in RootlessKit v3." $(GO) build -o $@ -v ./cmd/rootlesskit-docker-proxy .PHONY: cross diff --git a/README.md b/README.md index 1504d665..374888de 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Run `make && sudo make install` . The following binaries will be installed: - `/usr/local/bin/rootlesskit` - `/usr/local/bin/rootlessctl` -- `/usr/local/bin/rootlesskit-docker-proxy` (Can be safely removed if you do not use Docker) +- `/usr/local/bin/rootlesskit-docker-proxy` (DEPRECATED; Only required for Docker prior to [v28](https://github.com/moby/moby/pull/48132/commits/dac7ffa3404138a4f291c16586e5a2c68dad4151)) ### Requirements diff --git a/cmd/rootlesskit-docker-proxy/main.go b/cmd/rootlesskit-docker-proxy/main.go index 771658eb..fea6bc32 100644 --- a/cmd/rootlesskit-docker-proxy/main.go +++ b/cmd/rootlesskit-docker-proxy/main.go @@ -1,3 +1,12 @@ +// Package main provides the `rootlesskit-docker-proxy` binary (DEPRECATED) +// that was used by Docker prior to v28 for supporting rootless mode. +// +// The rootlesskit-docker-proxy binary is no longer needed since Docker v28, +// as the functionality of rootlesskit-docker-proxy is now provided by dockerd itself. +// +// https://github.com/moby/moby/pull/48132/commits/dac7ffa3404138a4f291c16586e5a2c68dad4151 +// +// rootlesskit-docker-proxy will be removed in RootlessKit v3. package main import (