docker安装宝塔

docker rm -f baota76

mkdir -p /home/baota76/bt.cn/backup
mkdir -p /home/baota76/bt.cn/server/cron
mkdir -p /home/baota76/bt.cn/server/data
mkdir -p /home/baota76/bt.cn/server/nginx/conf
mkdir -p /home/baota76/bt.cn/server/nginx/html
mkdir -p /home/baota76/bt.cn/server/panel/config
mkdir -p /home/baota76/bt.cn/server/panel/data
mkdir -p /home/baota76/bt.cn/server/panel/vhost
mkdir -p /home/baota76/bt.cn/server/pure-ftpd/etc
mkdir -p /home/baota76/bt.cn/wwwroot

docker run -itd --name baota76 -p 10022:22 -p 10031:21 -p 10038:80 -p 10039:8888 \
--privileged=true \
-v /home/baota76/bt.cn/backup:/www/backup \
-v /home/baota76/bt.cn/server/cron:/www/server/cron \
-v /home/baota76/bt.cn/server/data:/www/server/data \
-v /home/baota76/bt.cn/server/nginx/conf:/www/server/nginx/conf \
-v /home/baota76/bt.cn/server/nginx/html:/www/server/nginx/html \
-v /home/baota76/bt.cn/server/panel/config:/www/server/panel/config \
-v /home/baota76/bt.cn/server/panel/data:/www/server/panel/data \
-v /home/baota76/bt.cn/server/panel/vhost:/www/server/panel/vhost \
-v /home/baota76/bt.cn/server/pure-ftpd/etc:/www/server/pure-ftpd/etc \
-v /home/baota76/bt.cn/wwwroot:/www/wwwroot \
centos:7

docker exec -it baota76 /bin/bash
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

docker安装宝塔

重启以后

/etc/init.d/bt start

重新开启