mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Remove rootlesskit-docker-proxy
It's not needed, now the daemon tells RootlessKit about port mappings directly. Signed-off-by: Rob Murray <rob.murray@docker.com>
This commit is contained in:
@@ -377,8 +377,6 @@ RUN --mount=from=rootlesskit-src,src=/usr/src/rootlesskit,rw \
|
||||
export CGO_ENABLED=$([ "$DOCKER_STATIC" = "1" ] && echo "0" || echo "1")
|
||||
xx-go build -o /build/rootlesskit -ldflags="$([ "$DOCKER_STATIC" != "1" ] && echo "-linkmode=external")" ./cmd/rootlesskit
|
||||
xx-verify $([ "$DOCKER_STATIC" = "1" ] && echo "--static") /build/rootlesskit
|
||||
xx-go build -o /build/rootlesskit-docker-proxy -ldflags="$([ "$DOCKER_STATIC" != "1" ] && echo "-linkmode=external")" ./cmd/rootlesskit-docker-proxy
|
||||
xx-verify $([ "$DOCKER_STATIC" = "1" ] && echo "--static") /build/rootlesskit-docker-proxy
|
||||
EOT
|
||||
COPY --link ./contrib/dockerd-rootless.sh /build/
|
||||
COPY --link ./contrib/dockerd-rootless-setuptool.sh /build/
|
||||
|
||||
@@ -27,7 +27,5 @@ install_rootlesskit_dynamic() {
|
||||
|
||||
_install_rootlesskit() (
|
||||
echo "Install rootlesskit version ${ROOTLESSKIT_VERSION}"
|
||||
for f in rootlesskit rootlesskit-docker-proxy; do
|
||||
GOBIN="${PREFIX}" GO111MODULE=on go install ${BUILD_MODE} -ldflags="$ROOTLESSKIT_LDFLAGS" "github.com/rootless-containers/rootlesskit/v2/cmd/${f}@${ROOTLESSKIT_VERSION}"
|
||||
done
|
||||
GOBIN="${PREFIX}" GO111MODULE=on go install ${BUILD_MODE} -ldflags="$ROOTLESSKIT_LDFLAGS" "github.com/rootless-containers/rootlesskit/v2/cmd/rootlesskit@${ROOTLESSKIT_VERSION}"
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ copy_binaries() {
|
||||
return
|
||||
fi
|
||||
echo "Copying nested executables into $dir"
|
||||
for file in containerd containerd-shim-runc-v2 ctr runc docker-init rootlesskit rootlesskit-docker-proxy dockerd-rootless.sh dockerd-rootless-setuptool.sh; do
|
||||
for file in containerd containerd-shim-runc-v2 ctr runc docker-init rootlesskit dockerd-rootless.sh dockerd-rootless-setuptool.sh; do
|
||||
cp -f "$(command -v "$file")" "$dir/"
|
||||
done
|
||||
# vpnkit might not be available for the target platform, see vpnkit stage in
|
||||
|
||||
@@ -15,7 +15,6 @@ source "${MAKEDIR}/.install"
|
||||
install_binary "${DEST}/docker-proxy"
|
||||
install_binary "${DEST}/docker-init"
|
||||
install_binary "${DEST}/rootlesskit"
|
||||
install_binary "${DEST}/rootlesskit-docker-proxy"
|
||||
install_binary "${DEST}/dockerd-rootless.sh"
|
||||
install_binary "${DEST}/dockerd-rootless-setuptool.sh"
|
||||
if [ -f "${DEST}/vpnkit" ]; then
|
||||
|
||||
@@ -2,9 +2,6 @@ package rootless // import "github.com/docker/docker/pkg/rootless"
|
||||
|
||||
import "os"
|
||||
|
||||
// RootlessKitDockerProxyBinary is the binary name of rootlesskit-docker-proxy
|
||||
const RootlessKitDockerProxyBinary = "rootlesskit-docker-proxy"
|
||||
|
||||
// RunningWithRootlessKit returns true if running under RootlessKit namespaces.
|
||||
func RunningWithRootlessKit() bool {
|
||||
return os.Getenv("ROOTLESSKIT_STATE_DIR") != ""
|
||||
|
||||
Reference in New Issue
Block a user