mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
change docker daemon.json - more flexible
This commit is contained in:
44
du_setup.sh
44
du_setup.sh
@@ -3815,23 +3815,35 @@ install_docker() {
|
|||||||
NEW_DOCKER_CONFIG=$(mktemp)
|
NEW_DOCKER_CONFIG=$(mktemp)
|
||||||
tee "$NEW_DOCKER_CONFIG" > /dev/null <<DAEMONFILE
|
tee "$NEW_DOCKER_CONFIG" > /dev/null <<DAEMONFILE
|
||||||
{
|
{
|
||||||
"log-driver": "json-file",
|
"log-driver": "json-file",
|
||||||
"log-opts": {
|
"log-opts": {
|
||||||
"max-size": "10m",
|
"max-size": "10m",
|
||||||
"max-file": "3"
|
"max-file": "5",
|
||||||
},
|
"compress": "true"
|
||||||
"live-restore": true,
|
},
|
||||||
"dns": ["9.9.9.9", "1.1.1.1", "208.67.222.222"],
|
"live-restore": true,
|
||||||
"userland-proxy": false,
|
"dns": [
|
||||||
"no-new-privileges": true,
|
"9.9.9.9",
|
||||||
"icc": false,
|
"1.1.1.1",
|
||||||
"default-ulimits": {
|
"208.67.222.222"
|
||||||
"nofile": {
|
],
|
||||||
"Name": "nofile",
|
"default-address-pools": [
|
||||||
"Hard": 64000,
|
{
|
||||||
"Soft": 64000
|
"base": "172.80.0.0/16",
|
||||||
|
"size": 24
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"userland-proxy": false,
|
||||||
|
"default-ulimits": {
|
||||||
|
"nofile": {
|
||||||
|
"Name": "nofile",
|
||||||
|
"Hard": 64000,
|
||||||
|
"Soft": 64000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"buildkit": true
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
DAEMONFILE
|
DAEMONFILE
|
||||||
mkdir -p /etc/docker
|
mkdir -p /etc/docker
|
||||||
|
|||||||
Reference in New Issue
Block a user