Skip to content

Commit

Permalink
Merge pull request #994 from linuxserver/universal-docker-in-docker-fd
Browse files Browse the repository at this point in the history
use lower fd, remove arm32 checks
  • Loading branch information
aptalca authored Dec 25, 2024
2 parents 7a64aaa + 85cda22 commit 2a1a240
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1

## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
FROM ghcr.io/linuxserver/baseimage-alpine:3.21 as buildstage

ARG MOD_VERSION

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#!/usr/bin/with-contenv bash

ARCH=$(uname -m)
if [[ "${ARCH}" = "armv7l" ]]; then
echo "**** The universal docker mod no longer supports arm32v7/armhf per https://info.linuxserver.io/issues/2023-07-01-armhf/ ****"
exit 0
fi

ABC_USER=$(id -nu ${PUID:-911})
mkdir -p /config/{logs/dockerd,var/lib/docker}
lsiown -R ${ABC_USER}:${ABC_USER} /config/logs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/with-contenv bash

if [[ $(uname -m) = "armv7l" ]]; then
echo "**** The universal docker mod no longer supports arm32v7/armhf per https://info.linuxserver.io/issues/2023-07-01-armhf/ ****"
exit 0
fi

echo "**** Enabling QEMU ****"
docker pull lscr.io/linuxserver/qemu-static
exec docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset -p yes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10736
736
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/with-contenv bash

if [[ $(uname -m) = "armv7l" ]]; then
echo "**** The universal docker mod no longer supports arm32v7/armhf per https://info.linuxserver.io/issues/2023-07-01-armhf/ ****"
sleep infinity
fi

## dind hack from https://github.com/moby/moby/blob/master/hack/dind
export container=docker
if [ -d /sys/kernel/security ] && ! mountpoint -q /sys/kernel/security; then
Expand Down

0 comments on commit 2a1a240

Please sign in to comment.