centos7容器安装宝塔
时间:2024-01-02 16:37:02
1、docker pull centos:centos7
2、运行容器
3.进入容器安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ed099927
4.包装运行中的容器(启动前停止容器)(停止运行中的宝塔)
docker commit -a="dade" -m="dade lai le" 5dcd13b6fc79 dadebaota:v1
5、运行
docker run -id -p 8888:8888 dadebaota:v1