11 lines
177 B
Bash
11 lines
177 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
set -eu
|
||
|
|
|
||
|
|
docker_gid=$(stat -c "%g" /run/docker.sock)
|
||
|
|
addgroup --gid ${docker_gid} --system docker
|
||
|
|
usermod -aG docker yellowtent
|
||
|
|
|
||
|
|
exec su yellowtent --command "$@"
|
||
|
|
|