Ubuntu中安装Docker
来源:https://www.bilibili.com/video/BV1AA4y1S7cF/?spm_id_from=333.337.search-card.all.click&vd_source=01647a5a28aa4f169297611d3728fdcd
CSDN上的教程2
https://blog.csdn.net/weixin_48386220/article/details/131920077
如何查看是否开启windows10和windows11的虚拟化
https://zhuanlan.zhihu.com/p/586751199
出现错误:
适用于 Linux 的 Windows 子系统没有已安装的分发版。 可以通过访问 Microsoft Store 来安装分发版: https://aka.ms/wslstore
解决方案,输入命令:
1 | wsl --install -d Ubuntu-20.04 |
参考来源:
https://www.cnblogs.com/valin/p/15354660.html
https://docs.docker.com/desktop/wsl/?uuid=791E8864-B2BC-44BF-9792-C5A4022B281B
https://blog.csdn.net/qq_41980849/article/details/126257321
WSL 是什么?
微软推出的虚拟机工具
国内的docker镜像,可以在{}中添加如下代码:
1 | "registry-mirrors" : [ |
完整版
1 | {"registry-mirrors" : [ |
指令
1 | sudo apt-get update |
内核版本的检查
1 | $uname -a |
驱动的检查 device mapper
$ ls -l /sys/class/misc/device-mapper
docker run -it -d -p 80:80 -p 8188:8188 -p 3306:3306 -e EZONE_URL=IP地址 -v /ezone/data/logs:/root/logs -v /ezone/data/mysql:/data/mysql -v /ezone/data/redis:/data/redis -v /ezone/data/elasticsearch:/data/elasticsearch -v /ezone/data/avatar:/data/base/avatar -v /ezone/data/repos:/data/ezcode/repos -v /ezone/data/cilog:/app/data/cilog -v /ezone/data/reports:/app/data/reports -v /ezone/data/pkg:/data/pkg -v /ezone/data/attachment:/app/storage –privileged=true –restart always –name ezone hub.kce.ksyun.com/ezone-public/ezone-all:0.0.0.1258.1
IP:172.23.36.122
容器ID 03d0857abe8a
docker run -it -d -p 80:80 -p 8188:8188 -p 3306:3306 -e EZONE_URL=172.23.36.122 -v /ezone/data/logs:/root/logs -v /ezone/data/mysql:/data/mysql -v /ezone/data/redis:/data/redis -v /ezone/data/elasticsearch:/data/elasticsearch -v /ezone/data/avatar:/data/base/avatar -v /ezone/data/repos:/data/ezcode/repos -v /ezone/data/cilog:/app/data/cilog -v /ezone/data/reports:/app/data/reports -v /ezone/data/pkg:/data/pkg -v /ezone/data/attachment:/app/storage –privileged=true –restart always –name ezone hub.kce.ksyun.com/ezone-public/ezone-all:0.0.0.1258.1
IP:172.23.36.122
容器ID 20f880514037