bundles/docker-engine: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGLLLLLLLLLLLLLLLLLLLLLLLLL

networking is apparently hard
This commit is contained in:
Franzi 2025-02-15 11:06:09 +01:00
parent 5af3fbe3e0
commit 932ae43621
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 20 additions and 3 deletions

View file

@ -17,8 +17,9 @@ PGID="$(id -g "docker-${name}")"
if [ "$ACTION" == "start" ]
then
docker rm "${name}" || true
docker run -d \
--rm \
--name "${name}" \
--env "PUID=$PUID" \
--env "PGID=$PGID" \
@ -26,6 +27,7 @@ then
% for k, v in sorted(environment.items()):
--env "${k}=${v}" \
% endfor
--network aaarghhh \
% for host_port, container_port in sorted(ports.items()):
--publish "127.0.0.1:${host_port}:${container_port}" \
% endfor