1, 拉取 CentOS
docker pull CentOS
2, 运行
docker run -i -t -d --name baota --restart always -p 9020:20 -p 9021:21 -p 9080:80 -p 9443:443 -p 9888:888 -p 9988:8888 --privileged=true -v /data/www:/www CentOS
3, 进入容器
docker exec -it baota bash
4, 运行安装命令
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
完成.
来源: http://www.bubuko.com/infodetail-3495630.html