diff options
author | terminaldweller <thabogre@gmail.com> | 2022-04-17 15:53:44 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-04-17 15:53:44 +0000 |
commit | c94222d3c29789909f761aff31777bdc5b036c9c (patch) | |
tree | d1749737e9209556493a61e435dbae3371dba407 /services | |
parent | update (diff) | |
download | scripts-c94222d3c29789909f761aff31777bdc5b036c9c.tar.gz scripts-c94222d3c29789909f761aff31777bdc5b036c9c.zip |
bunch of stuff
Diffstat (limited to '')
-rwxr-xr-x | services/docker/run | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/docker/run b/services/docker/run new file mode 100755 index 0000000..77eff1a --- /dev/null +++ b/services/docker/run @@ -0,0 +1,9 @@ +#!/bin/sh +[ -r conf ] && . ./conf +modprobe -q loop || exit 1 +mountpoint -q /sys/fs/cgroup/systemd || { + mkdir -p /sys/fs/cgroup/systemd; + mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd; +} +#exec env HTTP_PROXY="http://127.0.0.1:9999" chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1 +exec env NO_PROXY="localhost,127.0.0.1,192.168.1/24" HTTPS_PROXY="socks5://127.0.0.1:9996" HTTP_PROXY="socks5://127.0.0.1:9996" chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1 |