Add docker config
This commit is contained in:
parent
86890bf436
commit
5f8faea941
|
@ -111,6 +111,9 @@ mkdir -p files/etc/dropbear
|
||||||
chmod 0750 files/etc/dropbear
|
chmod 0750 files/etc/dropbear
|
||||||
cp ${pwd}/authorized_keys files/etc/dropbear
|
cp ${pwd}/authorized_keys files/etc/dropbear
|
||||||
chmod 0400 files/etc/dropbear/authorized_keys
|
chmod 0400 files/etc/dropbear/authorized_keys
|
||||||
|
mkdir -p files/etc/docker
|
||||||
|
chmod 0750 files/etc/docker
|
||||||
|
cp ${pwd}/daemon.json files/etc/docker
|
||||||
mkdir -p files/etc/uci-defaults
|
mkdir -p files/etc/uci-defaults
|
||||||
cp ${pwd}/defaults/* files/etc/uci-defaults
|
cp ${pwd}/defaults/* files/etc/uci-defaults
|
||||||
|
|
||||||
|
|
6
daemon.json
Normal file
6
daemon.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"log-level": "warn",
|
||||||
|
"userland-proxy": false,
|
||||||
|
"iptables": true,
|
||||||
|
"storage-driver": "btrfs"
|
||||||
|
}
|
14
defaults/48-docker
Normal file
14
defaults/48-docker
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
VERSION=1
|
||||||
|
|
||||||
|
[ "$(uci -q get defaults.version.docker)" -ge "$VERSION" ] && exit 0
|
||||||
|
|
||||||
|
# save version
|
||||||
|
/sbin/uci set defaults.version.docker="$VERSION"
|
||||||
|
|
||||||
|
/sbin/uci -q batch << EOF
|
||||||
|
set defaults.version.docker="$VERSION"
|
||||||
|
commit defaults
|
||||||
|
set docker.globals=globals
|
||||||
|
set docker.globals.alt_config_file=/etc/docker/daemon.json
|
||||||
|
commit docker
|
||||||
|
EOF
|
Loading…
Reference in New Issue
Block a user