Sign inSign up

huadijia/centos

By huadijia

•Updated about 6 years ago

基于centos:7安装宝塔面板v7.4.5

Image
0

137

huadijia/centos repository overview

⁠Dockerfile

FROM centos:7

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN yum install openssh-server nano wget -y

RUN wget -O install.sh http://download.bt.cn/install/install_6.0.sh⁠ && sh -c '/bin/echo -e "\ny\n" | sh install.sh'

RUN rm -f /www/server/panel/data/admin_path.pl

COPY ./resolv.sh /root

CMD ["/usr/sbin/init", "/root/resolv.sh"]

⁠resolv.sh

#!/bin/bash

echo -e "nameserver 119.29.29.29\nnameserver 223.5.5.5" > /etc/resolv.conf

cat /etc/resolv.conf

⁠Run

docker run -tid --name=demo -p 8888:8888 --restart=always --privileged=true huadijia/centos:7-bt7.4.5

Tag summary

Content type

Image

Digest

Size

288.3 MB

Last updated

about 6 years ago

docker pull huadijia/centos:8-bt7.4.5