群辉docker安装LINUX-CentOS7.9教程

LAMP12个月前发布 liyugang
260 0

一、SSH登录群辉

sudo -i

获取超管

二、Centos7.9镜像拉取

docker pull centos:centos7.9.2009

三、创建Centos容器

docker run -d --name baota \
-p 10080:80 \
-p 8888:8888 \
-v /volume1/docker/baota/wwwroot:/www/wwwroot \
-v /volume1/docker/baota/backup:/www/backup \
--privileged=true \
centos:7.9.2009 /usr/sbin/init

四、容器配置

# 进入容器
docker exec -it baota /bin/bash

# 升级
yum -y update

# 安装宝塔 Centos安装脚本
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

脚本运行过程中会出现错误,先忽略,脚本安装完后也不要急着进入。

 

若出现如下错误,只需执行/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip 然后重启容器即可。

WARNING: You are using pip version 20.3.3; however, version 23.0.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.

宝塔配置

  • 修改面板端口
    • 默认生成的不一定是8888
  • 查看面板入口
    • /etc/init.d/bt default
  • 其他…..

遗留问题

1.Error: COMMAND_FAILED: '/usr/sbin/ip6tables-restore -w -n' failed: ip6tables-restore: line 52 failed

不影响使用,暂未处理

© 版权声明

相关文章

暂无评论

暂无评论...