Docker搭建,镜像加速,DPanel安装
1.为什么要学习Docker
Q1: 在我买电脑上明明是好的!!!
Q2: 根着教程安装一个软件,结果安装失败
Docker: 此时就有一个解决方案,Docker容器化部署 ,它能用集装箱式的隔离,完美解决环境问题,彻底解决部署时的各种环境麻烦
2.安装
- 一键安装脚本
bash <(curl -f -s --connect-timeout 10 --retry 3 https://linuxmirrors.cn/docker.sh) --source mirrors.tencent.com/docker-ce --source-registry docker.1ms.run --protocol https --install-latested true --close-firewall false --ignore-backup-tips- 可以用如下命令验证下是否安装成功
docker version- 输出如下即为成功
Client: Docker Engine - Community
Version: 29.1.3
API version: 1.52
Go version: go1.25.5
Git commit: f52814d
Built: Fri Dec 12 14:53:00 2025
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 29.1.3
API version: 1.52 (minimum version 1.44)
Go version: go1.25.5
Git commit: fbf3ed2
Built: Fri Dec 12 14:49:33 2025
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v2.2.1
GitCommit: dea7da592f5d1d2b7755e3a161be07f43fad8f75
runc:
Version: 1.3.4
GitCommit: v1.3.4-0-gd6d73eb8
docker-init:
Version: 0.19.0
GitCommit: de40ad03.设置镜像加速
- 看下
/etc/docker目录是否存在,如果存在则再看daemon.json是否存在
file /etc/docker/
file /etc/docker/daemon.json- 如果不存在使用如下命令创建
mkdir -p /etc/docker- 如果
daemon.json不存在则直接执行如下命令
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://docker.1ms.run"]
}
EOF- 如果
daemon.json存在则打开文件,将镜像加速地址(https://docker.1ms.run) 追加到registry-mirrors里
| Docker镜像加速站 | https://hub.uuuadc.top/ |
|---|---|
| docker.1panel.live | |
| hub.rat.dev | |
| DockerHub 镜像加速代理 | https://docker.anyhub.us.kg |
| https://docker.chenby.cn | |
| https://dockerhub.jobcher.com/ | |
| 镜像使用说明 | https://dockerhub.icu |
| Docker镜像加速站 | https://docker.ckyl.me |
| 镜像使用说明 73 | https://docker.awsl9527.cn |
| 镜像使用说明 67 | https://docker.hpcloud.cloud |
| AtomHub 可信镜像仓库平台 77(只包含基础镜像,共336个) | https://atomhub.openatom.cn |
| DaoCloud 镜像站 146 | https://docker.m.daocloud.io |
- 重载
daemon.json的配置
systemctl daemon-reload- 重启docker
systemctl restart docker4.DPanel安装
DPanel是由donknap开发的一个开源项目
一个轻量级的Docker管理工具,为用户提供一个直观、易用的界面来管理Docker容器。dpanel以其轻量化和高性能著称,是Docker用户的理想选择。
功能如下:
- 提供可视化面板操作docker及compose
- 容器管事
- 镜像管理
- 日志查看
- Docker网络管理
- 数据卷管理
开始安装,参考DPanel GitHub主页文档,执行如下命令:
docker run -d --name dpanel --restart=always \
-p 8807:8080 -e APP_NAME=dpanel \
-v /var/run/docker.sock:/var/run/docker.sock -v dpanel:/dpanel \
dpanel/dpanel:lite
下载看看
I drop a comment whenever I like a article on a site or I have something to valuable to contribute to the discussion. Usually it is a result of the fire displayed in the article I looked at. And on this article Freewind主题音乐播放器(老王重制版) - 冷文学习者. I was actually excited enough to post a comment :-) I actually do have a few questions for you if it's okay. Could it be just me or do some of these responses appear like left by brain dead people? :-P And, if you are posting at other places, I would like to keep up with everything new you have to post. Could you list the complete urls of your communal sites like your linkedin profile, Facebook page or twitter feed? Feel free to surf to my blog post :: https://bonusstats.com/en/bonus-7signs
Thanks for finally talking about >Freewind 1.5 更新 - 冷文学习者
下载看看
我要回复一下课件