Merge pull request #6 from linuxserver/buildx-config

Create buildx container instance on init
This commit is contained in:
Adam 2024-04-29 13:29:21 +01:00 committed by GitHub
commit feb8da64fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 1 deletions

View File

@ -99,7 +99,7 @@ find /run /var/run -iname 'docker*.pid' -delete || :
# create docker group and add abc to it
groupadd -f docker
if ! id -nG "$(id -nu "${PUID:-911}")" | grep -q "docker"; then
if ! id -nG "$(id -nu "${PUID:-911}")" | grep -q "docker"; then
usermod -aG docker "$(id -nu "${PUID:-911}")"
fi

View File

@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
docker buildx create --driver docker-container --name container >/dev/null 2>&1

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-buildx-config/run