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)
|
||||
tee "$NEW_DOCKER_CONFIG" > /dev/null <<DAEMONFILE
|
||||
{
|
||||
"log-driver": "json-file",
|
||||
"log-opts": {
|
||||
"max-size": "10m",
|
||||
"max-file": "3"
|
||||
},
|
||||
"live-restore": true,
|
||||
"dns": ["9.9.9.9", "1.1.1.1", "208.67.222.222"],
|
||||
"userland-proxy": false,
|
||||
"no-new-privileges": true,
|
||||
"icc": false,
|
||||
"default-ulimits": {
|
||||
"nofile": {
|
||||
"Name": "nofile",
|
||||
"Hard": 64000,
|
||||
"Soft": 64000
|
||||
"log-driver": "json-file",
|
||||
"log-opts": {
|
||||
"max-size": "10m",
|
||||
"max-file": "5",
|
||||
"compress": "true"
|
||||
},
|
||||
"live-restore": true,
|
||||
"dns": [
|
||||
"9.9.9.9",
|
||||
"1.1.1.1",
|
||||
"208.67.222.222"
|
||||
],
|
||||
"default-address-pools": [
|
||||
{
|
||||
"base": "172.80.0.0/16",
|
||||
"size": 24
|
||||
}
|
||||
],
|
||||
"userland-proxy": false,
|
||||
"default-ulimits": {
|
||||
"nofile": {
|
||||
"Name": "nofile",
|
||||
"Hard": 64000,
|
||||
"Soft": 64000
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"buildkit": true
|
||||
}
|
||||
}
|
||||
}
|
||||
DAEMONFILE
|
||||
mkdir -p /etc/docker
|
||||
|
||||
Reference in New Issue
Block a user