bundles/docker-engine: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGLLLLLLLLLLLLLLLLLLLLLLLLL
networking is apparently hard
This commit is contained in:
parent
5af3fbe3e0
commit
932ae43621
2 changed files with 20 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue