1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
| [root@centos7-mini3 dockerInstall] containerd.service docker-24.0.2.tgz docker.service limits.conf daemon.json docker-compose-Linux-x86_64_1.28.6 docker.socket sysctl.conf
https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/
https://github.com/docker/compose/releases/tag/1.28.6
[root@centos7-mini3 dockerInstall] * soft core unlimited * hard core unlimited * soft nproc 1000000 * hard nproc 1000000 * soft nofile 1000000 * hard nofile 1000000 * soft memlock 32000 * hard memlock 32000 * soft msgqueue 8192000 * hard msgqueue 8192000 [root@centos7-mini3 dockerInstall] net.ipv4.ip_forward=1 vm.max_map_count=262144 kernel.pid_max=4194303 fs.file-max=1000000 net.ipv4.tcp_max_tw_buckets=6000 net.netfilter.nf_conntrack_max=2097152
net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 vm.swappiness=0
[root@centos7-mini3 dockerInstall] opyright The containerd Authors.
[Unit] Description=containerd container runtime Documentation=https://containerd.io After=network.target local-fs.target
[Service] ExecStartPre=-/usr/sbin/modprobe overlay ExecStart=/usr/bin/containerd
Type=notify Delegate=yes KillMode=process Restart=always RestartSec=5
LimitNPROC=infinity LimitCORE=infinity LimitNOFILE=infinity
TasksMax=infinity OOMScoreAdjust=-999
[Install] WantedBy=multi-user.target +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ [root@centos7-mini3 dockerInstall] [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com BindsTo=containerd.service After=network-online.target firewalld.service containerd.service Wants=network-online.target Requires=docker.socket
[Service] Type=notify
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock ExecReload=/bin/kill -s HUP $MAINPID TimeoutSec=0 RestartSec=2 Restart=always
StartLimitBurst=3
StartLimitInterval=60s
LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity
TasksMax=infinity
Delegate=yes
KillMode=process
[Install] WantedBy=multi-user.target +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ [root@centos7-mini3 dockerInstall] [Unit] Description=Docker Socket for the API PartOf=docker.service
[Socket] ListenStream=/var/run/docker.sock SocketMode=0660 SocketUser=root SocketGroup=docker
[Install] WantedBy=sockets.target
[root@centos7-mini3 dockerInstall] { "data-root": "/data/docker", "storage-driver": "overlay2", "insecure-registries": ["harbor.myserver.com","192.168.119.105"], "registry-mirrors": ["https://frncu3gx.mirror.aliyuncs.com"], "exec-opts": ["native.cgroupdriver=systemd"], "live-restore": false, "log-opts": { "max-file": "5", "max-size": "100m" } }
|