麻烦

sudo docker swarm init

sudo docker node update --label-add='name=linux-1' $(sudo docker node ls -q)
unzip v3.6.1.zip
cd CTFd
sudo chmod +x -R .
rm -rf ./.data # 删除 CTFd下的 .data(主要是我test期间的数据,后期上传版本前我会自己删)
sudo docker-compose up -d # 直接启动什么都不要管

里面还是要改一下的

networks:
default:
internal:
internal: true
frp_connect:
driver: overlay
internal: true
*attachable: true*
ipam:
config:
- subnet: 172.1.0.0/16
frp_containers:
driver: overlay
internal: true
attachable: true
ipam:
config:
- subnet: 172.2.0.0/16

打星号部分,加上那一句就行

妈的,重来

apt-get purge libcurl4 -y
apt install curl -y
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
有pip3的就不需要安装了。
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py

pip3 install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
cd /root
git clone https://github.com/d3N00t/ctfd_ctfd_whale_frp.git CTFd
cd /root/CTFd/CTFd/plugins/
git clone https://github.com/d3N00t/ctfd-whale.git ctfd-whale
rm -rf dynamic_challenges
git clone https://github.com/d3N00t/ctfd_dynamic_challenges.git dynamic_challenges
cd /root/CTFd/CTFd/themes/
git clone https://github.com/0xdevsachin/CTFD-crimson-theme.git

然后启动

里面改改dns什么的,能用,但是不出网
访问8000端口

烦透了,你麻痹的
docker swarm leave --force