作业系统对接指导手册 作业系统对接指导手册
首页
  • 地图对接
  • 服务对接
路径规划
视频分析
知识星球
位置平台
图创官网 (opens new window)
首页
  • 地图对接
  • 服务对接
路径规划
视频分析
知识星球
位置平台
图创官网 (opens new window)
  • 坐标系

    • 坐标系
  • 常用地图服务

    • 常用地图服务
    • 天地图
    • openlayers加载tms切片图层
  • 常用设计资源

    • 设计资源
  • 常用开发组件

    • nvm
    • web服务器
    • win下安装postgresql集群
    • mapbox4490
    • centosToAliyun
  • docker

    • Docker常见安装以及地址存档
      • windows linux mac网盘离线包
      • 二进制安装
      • 配置systemd启动
    • Docker日志处理
    • Docker目录迁移
    • 在IDEA中推送Docker镜像
    • Docker在线安裝腳本
    • Docker离线安裝腳本
  • 番外

    • 位置分享小程序
目录

Docker常见安装以及地址存档

# Docker常见安装以及地址存档

系统 安装文章 加速配置
ubuntu https://docs.docker.com/engine/install/ubuntu/ (opens new window)
windows 官方下载
centos https://docs.docker.com/engine/install/centos/ (opens new window)
debian https://docs.docker.com/engine/install/debian/ (opens new window)
二进制 https://docs.docker.com/engine/install/binaries/ (opens new window)

# windows linux mac网盘离线包

链接:https://pan.quark.cn/s/a6ac1094e7fe (opens new window)

# 二进制安装

  1. 下载docker二进制版本:https://download.docker.com/linux/static/stable/x86_64/ (opens new window)
  2. 解压文件:
tar xvf docker-27.3.1.tgz && mv docker /data/work/

# 配置systemd启动

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target docker.socket firewalld.service containerd.service time-set.target
Wants=network-online.target containerd.service
Requires=docker.socket

[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/data/work/docker/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutStartSec=0
RestartSec=2
Restart=always
# Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229.
# Both the old, and new location are accepted by systemd 229 and up, so using the old location
# to make them work for either version of systemd.
StartLimitBurst=3
# Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230.
# Both the old, and new name are accepted by systemd 230 and up, so using the old name to make
# this option work for either version of systemd.
StartLimitInterval=60s
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNPROC=infinity
LimitCORE=infinity
# Comment TasksMax if your systemd version does not support it.
# Only systemd 226 and above support this option.
TasksMax=infinity
# set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
OOMScoreAdjust=-500

[Install]
WantedBy=multi-user.target
上次更新: 2025/03/20, 14:54:17
centosToAliyun
Docker日志处理

← centosToAliyun Docker日志处理→

Theme by Vdoing | Copyright © 2023-2026 北京图创时代科技有限公司版权所有
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式