mirror of
https://github.com/linuxserver/docker-build-agent.git
synced 2026-03-16 00:06:37 +08:00
Merge pull request #6 from linuxserver/buildx-config
Create buildx container instance on init
This commit is contained in:
commit
feb8da64fb
@ -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
|
||||
|
||||
|
||||
4
root/etc/s6-overlay/s6-rc.d/init-buildx-config/run
Executable file
4
root/etc/s6-overlay/s6-rc.d/init-buildx-config/run
Executable 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
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-buildx-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-buildx-config/type
Normal file
@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-buildx-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-buildx-config/up
Normal file
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-buildx-config/run
|
||||
Loading…
x
Reference in New Issue
Block a user