spug
Posted mailfile
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spug相关的知识,希望对你有一定的参考价值。
cat /etc/redhat-release && uname -a
CentOS Linux release 7.8.2003 (Core)
Linux centos7-1 3.10.0-1127.el7.x86_64
systemctl stop firewalld && systemctl disable firewalld
echo SELINUX=disabled > /etc/sysconfig/selinux
cp -pv /etc/sysctl.conf /etc/sysctl.conf.bak
echo net.ipv4.tcp_syncookies = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_reuse = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_recycle = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_fin_timeout = 30 >> /etc/sysctl.conf
sysctl -p
yum install -y docker-ce
systemctl restart docker && systemctl enable docker
docker --version
Docker version 20.10.8, build 3967b7d
docker pull registry.aliyuncs.com/openspug/spug
mkdir -pv /usr/local/spug 宿主机于容器共享目录
docker run -itd --restart=always \\
--name=spug –p 80:80 \\
-v /usr/local/spug/:/data registry.aliyuncs.com/openspug/spug
docker ps | grep spug
6bcb37271af9 registry.aliyuncs.com/openspug/spug
docker exec -it spug /bin/bash 进入容器
docker exec -it spug sh -c "more /data/spug/spug_api/spug/overrides.py | grep USER"
\'USER\': \'spug\',
docker exec -it spug sh -c "more /data/spug/spug_api/spug/overrides.py | grep PASSWORD"
\'PASSWORD\': \'spug.dev\',
docker exec spug init_spug admin spug.dev 系统初始化
初始化/更新成功
创建用户成功
docker restart spug
admin/spug.dev
lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 3252 root 4u IPv4 64989 0t0 TCP *:http (LISTEN)
以上是关于spug的主要内容,如果未能解决你的问题,请参考以下文章