通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
[TOC] https://baiyue.one/archives/469.html https://www.bt.cn/bbs/thread-19376-1-1.html 安装图书网站:https://www.jianshu.com/p/45dc8d8e13c7 图书网站源码:https://www.bluestep.cc/bookstore%e5%9c%a8%e7%ba%bf%e4%b9%a6%e5%ba%97%e7%94%b5%e5%ad%90%e4%b9%a6ebooks%e5%9c%a8%e7%ba%bf%e9%98%85%e8%af%bb%e6%9c%89%e5%a3%b0%e8%af%bb%e7%89%a9%e7%bd%91%e7%ab%99%e7%b3%bb%e7%bb%9fphp%e6%ba%90/ ## 宝塔的docker镜像 ``` docker volume create baota_www docker volume create baota_wwwroot ``` 桥接模式启动 ``` docker run -tid --name baota -p 80:80 -p 444:443 -p 8888:8888 -p 888:888 -p 20:20 -p 21:21 --privileged=true --restart always -v baota_www:/www -v baota_wwwroot:/www/wwwroot pch18/baota ``` host模式启动 ``` docker run -tid --name baota --net=host --privileged=true --restart always -v baota_www:/www -v baota_wwwroot:/www/wwwroot pch18/baota ``` ## 在docker容器中安装宝塔 拉取centos镜像 进入容器 ``` docker run -d --net=host --name baota centos:latest docker exec -it baota /bin/bash ``` 安装宝塔,估计4分钟 ``` yum install -y wget && wget -O install.sh http://download.bt.cn/install/install\_6.0.sh && sh install.sh ``` 制作镜像 cat/baota:latest ``` docker commit -a "cat" -m "宝塔制作完成" baota cat/baota:latest ``` 创建volume ``` docker volume create baota_www docker volume create baota_wwwroot ``` 启动 ``` docker run -tid --name baota --net=host --privileged=true --restart always -v baota_www:/www -v baota_wwwroot:/www/wwwroot cat/baota:latest ``` ``` 外网面板地址: http://106.54.84.32:8888/10c97421 内网面板地址: http://172.17.0.7:8888/10c97421 username: zs7oj4vf password: c2bb22c2 If you cannot access the panel, release the following panel port [8888] in the security group 若无法访问面板,请检查防火墙/安全组是否有放行面板[8888]端口 ``` 进入容器使用`bt`命令重置为你需要的用户名和密码。