【docker】使用docker 安装 宝塔面板

拉取centos基础镜像,用容器启动该基础镜像,直接在这个容器中部署

1 拉取纯净系统镜像

docker pull centos:7.2.1511

2 启动镜像,映射主机与容器内8888端口

docker run -d -it -p 8888:8888 centos:7.2.1511

3 查看容器id,并进入容器

docker exec -it 容器ID bash

4 执行宝塔面板Centos安装命令

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

猜你喜欢

转载自www.cnblogs.com/richerdyoung/p/9774184.html
今日推荐