知识库
AI技术
并发编程
  • 分类
  • 标签
  • 归档
友情连接

luoliang

吾生也有涯,知也无涯
AI技术
并发编程
  • 分类
  • 标签
  • 归档
友情连接
  • docker的基本概念和用法
  • docker安装MySQL
  • docker-compose安装
  • k8s安装教程
  • docker-compose安装常用的服务
  • 离线安装docker
    • 安装配置
    • 配置daemon.json
      • ubuntu安装遇到错误
  • k8s
weiluoliang
2025-06-12
目录

离线安装docker

镜像下载地址 : https://download.docker.com/linux/static/stable/x86_64/ (opens new window)

# 安装配置

# 解压
tar xzvf docker-20.10.21.tgz

# 复制到系统路径
sudo cp docker/* /usr/bin/

# 创建systemd服务文件
sudo tee /etc/systemd/system/docker.service > /dev/null <<EOF
[Unit]
Description=Docker Application Container Engine

[Service]
Type=notify
ExecStart=/usr/bin/dockerd
Restart=always

[Install]
WantedBy=multi-user.target
EOF

# 启动服务
sudo systemctl daemon-reload
sudo systemctl enable docker
sudo systemctl start docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# 配置daemon.json

{
    "registry-mirrors": [
       "https://docker.1ms.run",
       "https://docker.1panel.dev"

    ],
    "exec-opts": ["native.cgroupdriver=cgroupfs"]
}
1
2
3
4
5
6
7
8

# ubuntu安装遇到错误

安装时遇到错误 failed to register “bridge” driver: failed to create NAT chain DOCKER: iptables not found,
安装iptables解决

sudo apt-get update
sudo apt-get install iptables
1
2
上次更新: 2025/06/12, 14:42:02
docker-compose安装常用的服务

← docker-compose安装常用的服务

最近更新
01
达梦数据库
06-12
02
n8n安装
06-12
03
docker-compose安装常用的服务
06-12
更多文章>
Theme by Vdoing | Copyright © 2022-2025 Evan Xu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式