一、docker代理问题
本人用的clash全局代理模式,然后配置dcoker代理clash
Docker 设置代理的三种方法(2025年02月08日亲测可用)_docker 代理-优快云博客
二、安装命令
apt install docker.io
docker pull yankovg/python3.8.2-ubuntu18.04
docker run -itd yankovg/python3.8.2-ubuntu18.04 bash
docker exec -it docker的ID /bin/bash
apt-get update
apt install git --fix-missing
apt install vim
rm /usr/bin/python3
ln -s /usr/local/bin/python3.8 /usr/bin/python3
python3 -m pip install --upgrade pip
git clone https://github.com/0x727/ShuiZe_0x727.git
#此处要是不能直接git下载,可以将水泽直接下载下来然后上传到自己的vps上
#vps开放端口下载文件
python3 -m http.server 端口号
#docker执行命令下载文件
wget http://vps的ip:开放的端口/文件
apt install unzip
cd ShuiZe_0x727-master
unzip ShuiZe_0x727-master.zip
chmod 777 docker_build.sh
./docker_build.sh
三、遇到的报错
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 935: ordinal not in range(128)
解决方法
vi /etc/profile
#写入
export PYTHONIOENCODING=utf-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
source /etc/profile
find . -type f -name "*.py" -exec sed -i 's/cf.read("\.\/iniFile\/config\.ini")/cf.read("\.\/iniFile\/config\.ini", encoding="utf-8")/g' {} \;