> 自建宝塔开心版实现了宝塔的集成环境和集成常用插件一键部署。 ## 系统环境 > centos 7.8 ### 安装docker ```shell # 先更新 sudo yum -y update # 安装依赖包 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 # 添加源,使用了阿里云镜像 sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # 配置缓存 sudo yum makecache fast # 安装最新稳定版本的docker sudo yum -y install docker-ce # 配置镜像加速器 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["http://hub-mirror.c.163.com"] } EOF # 启动docker引擎并设置开机启动 sudo systemctl start docker sudo systemctl enable docker # 配置当前用户对docker的执行权限 sudo groupadd docker sudo gpasswd -a ${USER} docker sudo systemctl restart docker ```  ```shell [root@iZm5e0zr24vf39p588qtkkZ ~]# docker run --name bt -it -d -v bt:/www -p 8888:8888 -p 3306:3306 -p 80:80 -p 443:443 xxxxx ``` ## 搞定 > 搞定!     最后修改:2021 年 06 月 16 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏
1 条评论
想想你的文章写的特别好https://www.jiwenlaw.com/