首页 > 其他分享 >docker 配置文件 deamon.json

docker 配置文件 deamon.json

时间:2024-04-05 09:57:37浏览次数:29  
标签:false 配置文件 default max json proxy docker true

{
"allow-nondistributable-artifacts": [],
"api-cors-header": "",
"authorization-plugins": [],
"bip": "",
"bridge": "",
"builder": {
"gc": {
"enabled": true,
"defaultKeepStorage": "10GB",
"policy": [
{ "keepStorage": "10GB", "filter": ["unused-for=2200h"] },
{ "keepStorage": "50GB", "filter": ["unused-for=3300h"] },
{ "keepStorage": "100GB", "all": true }
]
}
},
"cgroup-parent": "",
"containerd": "/run/containerd/containerd.sock",
"containerd-namespace": "docker",
"containerd-plugins-namespace": "docker-plugins",
"data-root": "",
"debug": true,
"default-address-pools": [
{
"base": "172.30.0.0/16",
"size": 24
},
{
"base": "172.31.0.0/16",
"size": 24
}
],
"default-cgroupns-mode": "private",
"default-gateway": "",
"default-gateway-v6": "",
"default-network-opts": {},
"default-runtime": "runc",
"default-shm-size": "64M",
"default-ulimits": {
"nofile": {
"Hard": 64000,
"Name": "nofile",
"Soft": 64000
}
},
"dns": [],
"dns-opts": [],
"dns-search": [],
"exec-opts": [],
"exec-root": "",
"experimental": false,
"features": {},
"fixed-cidr": "",
"fixed-cidr-v6": "",
"group": "",
"host-gateway-ip": "",
"hosts": [],
"proxies": {
"http-proxy": "http://proxy.example.com:80",
"https-proxy": "https://proxy.example.com:443",
"no-proxy": "*.test.example.com,.example.org"
},
"icc": false,
"init": false,
"init-path": "/usr/libexec/docker-init",
"insecure-registries": [],
"ip": "0.0.0.0",
"ip-forward": false,
"ip-masq": false,
"iptables": false,
"ip6tables": false,
"ipv6": false,
"labels": [],
"live-restore": true,
"log-driver": "json-file",
"log-level": "",
"log-opts": {
"cache-disabled": "false",
"cache-max-file": "5",
"cache-max-size": "20m",
"cache-compress": "true",
"env": "os,customer",
"labels": "somelabel",
"max-file": "5",
"max-size": "10m"
},
"max-concurrent-downloads": 3,
"max-concurrent-uploads": 5,
"max-download-attempts": 5,
"mtu": 0,
"no-new-privileges": false,
"node-generic-resources": [
"NVIDIA-GPU=UUID1",
"NVIDIA-GPU=UUID2"
],
"oom-score-adjust": 0,
"pidfile": "",
"raw-logs": false,
"registry-mirrors": [],
"runtimes": {
"cc-runtime": {
"path": "/usr/bin/cc-runtime"
},
"custom": {
"path": "/usr/local/bin/my-runc-replacement",
"runtimeArgs": [
"--debug"
]
}
},
"seccomp-profile": "",
"selinux-enabled": false,
"shutdown-timeout": 15,
"storage-driver": "",
"storage-opts": [],
"swarm-default-advertise-addr": "",
"tls": true,
"tlscacert": "",
"tlscert": "",
"tlskey": "",
"tlsverify": true,
"userland-proxy": false,
"userland-proxy-path": "/usr/libexec/docker-proxy",
"userns-remap": ""
}

https://docs.docker.com/reference/cli/dockerd/#daemon-configuration-file

 

标签:false,配置文件,default,max,json,proxy,docker,true
From: https://www.cnblogs.com/bianguji/p/18115494

相关文章

  • redis6.2.6配置文件说明
     导游Redis版本配置文件说明###UNIT(单位)###(了解)###INCLUDES(包含)###(了解)###MODULES(模块)###(了解)###NETWORK(网络)###(需记)###TLS/SSL(安全套接字)###(了解)###GENERAL(通用)###(精通)###SNAPSHOTTING(快照)###(需记)###REPLICATION(主从)###(必会)###KEYSTRACKING(键跟踪)###(了......
  • Flask02配置文件
    如下"""zaiapp.py中写如下app.config.from_object(类或类的路径)这样:就可以根据不同的环境用不同的类实现快速切换对应的配置文件"""classConfig(object):DEBUG=FalseDATABASE_URL='xxx'classProductionConfig(Config):DATABASE_UR......
  • docker从安装到卸载
    yum安装gccyum-yinstallgccyum-yinstallgcc-c++安装需要的软件包sudoyuminstall-yyum-utils设置镜像仓库sudoyum-config-manager--add-repohttps://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo重建yum索引yummakecachefast安装do......
  • 基于 Docker 的 go grpc quickstart
    工作之后一直使用的RPC框架是Apache的thrift,现在发现grpc更流行,所以也要学习一下,先来简单的跑一下demo。在本地安装运行也很方便,不过因为有了docker,所以在docker里面安装运行隔离性更好,顺便也提升docker命令行的熟练度。1.编写Dockerfile文件FROMgolang:1......
  • 配置文件优先级
    1.单applicationyml>properties当前项目的根目录/config/【jar包内config目录下】#最高优先级当前项目的根目录/【jar包内】#第二优先级类路径(在resource......
  • docker使用alpine构建jdk21镜像
    1,Dockerfile#使用AlpineLinux作为基础镜像FROMalpine:latest#设置语言环境变量为中文ENVLANG=zh_CN.UTF-8#安装所需的软件包,包括中文字体和中文语言支持RUNapkadd--no-cache\ttf-dejavu\fontconfig\tzdata\openjdk21......
  • 手搓Docker-Image-Creator(DIC)工具(04):DIC的代码实现
    此系列的前3篇主要是介绍了Docker的应用、Docker编排文件Dockerfile的常用命令、以及Docker镜像的构建过程等都进行简单介绍。尤其在第3篇,讲述了Docker运行时、安装用等资源,并在文末提出了存在的不足和改进的方向,本篇就直接从代码开始介绍如何使用DIC工具来......
  • 获取配置文件
    背景:在做winform的时候很经常就是将数据库的连接字符串信息保存到配置文件中,今天突然发现asp.netcorewebapi中的获取方式是很不一样的。在.netframework中配置文件在App.config中<?xmlversion="1.0"encoding="utf-8"?><configuration><startup><su......
  • 《手把手教你》系列技巧篇(七十)-java+ selenium自动化测试-Java中如何读取properties配
     1.简介Java自动化测试开发中,需要将一些易变的配置参数放置再XML配置文件或者properties配置文件中。然而XML配置文件需要通过DOM或SAX方式解析,而读取properties配置文件就比较容易。因此今天宏哥讲解和分享如何读取properties配置文件的内容。2.properties文件......
  • 迁移Docker镜像存放目录
    Docker镜像的默认目录为/var/lib/docker下的子目录image,假设换到新的目录/data1/docker,可按如下步骤操作:1、停掉docker守护进程:systemctlstopdocker2、创建新的镜像存放目录:mkdir-p/data1/docker3、创建或编辑Docker的配置文件/etc/docker/daemon.json:#cat......