日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

docker 配置文件:/etc/docker/daemon.json

發布時間:2023/12/10 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 docker 配置文件:/etc/docker/daemon.json 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

/etc/docker/daemon.json 是 docker 的配置文件,默認是沒有的,需要我們手動創建,可配置項如下:

[root@localhost ~]$ vim /etc/docker/daemon.json {"authorization-plugins": [],"data-root": "", # 設置docker運行時的根目錄"dns": [], # 設置容器的DNS地址"dns-opts": [], # 設置容器的/etc/resolv.conf文件"dns-search": [],"exec-opts": [],"exec-root": "","experimental": false,"features": {},"storage-driver": "","storage-opts": [],"labels": [],"live-restore": true,"log-driver": "json-file","log-opts": {"max-size": "10m","max-files":"5","labels": "somelabel","env": "os,customer"},"mtu": 0,"pidfile": "", # 設置docker守護進程的PID文件"cluster-store": "", "cluster-store-opts": {},"cluster-advertise": "","max-concurrent-downloads": 3,"max-concurrent-uploads": 5,"default-shm-size": "64M","shutdown-timeout": 15,"debug": true, # 是否以debug模式啟動docker"hosts": [], # 設置容器的hosts"log-level": "","tls": true,"tlsverify": true,"tlscacert": "","tlscert": "","tlskey": "","swarm-default-advertise-addr": "","api-cors-header": "","selinux-enabled": false, # 設置是否支持SELinux"userns-remap": "","group": "","cgroup-parent": "","default-ulimits": {"nofile": {"Name": "nofile","Hard": 64000,"Soft": 64000}},"init": false,"init-path": "/usr/libexec/docker-init","ipv6": false,"iptables": false,"ip-forward": false, "ip-masq": false,"userland-proxy": false,"userland-proxy-path": "/usr/libexec/docker-proxy","ip": "0.0.0.0","bridge": "","bip": "","fixed-cidr": "","fixed-cidr-v6": "","default-gateway": "","default-gateway-v6": "","icc": false,"raw-logs": false,"allow-nondistributable-artifacts": [],"registry-mirrors": [], # 設置鏡像加速地址"seccomp-profile": "","insecure-registries": [], # 設置docker的私有倉庫地址"no-new-privileges": false,"default-runtime": "runc","oom-score-adjust": -500,"node-generic-resources": ["NVIDIA-GPU=UUID1", "NVIDIA-GPU=UUID2"],"runtimes": {"cc-runtime": {"path": "/usr/bin/cc-runtime"},"custom": {"path": "/usr/local/bin/my-runc-replacement","runtimeArgs": ["--debug"]}},"default-address-pools":[{"base":"172.80.0.0/16","size":24},{"base":"172.90.0.0/16","size":24}] }

?

?

?

?

? ??

轉載于:https://www.cnblogs.com/pzk7788/p/10180197.html

總結

以上是生活随笔為你收集整理的docker 配置文件:/etc/docker/daemon.json的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。