镜像教程
docker pull consol/centos-xfce-vnc
docker run -itd --user 0 -p 5901:5901 -p 6901:6901 consol/centos-xfce-vnc
1c835ea94fa9
vnc https://www.realvnc.com/en/connect/download/viewer/
访达->前往->连接服务器 vnc://11.164.62.250:5901 密码 vncpassword
docker exec -it 1c835ea94fa9 /bin/bash
安装python3
参考自己
curl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo
安装出现问题禁用存储库
yum-config-manager --disable tigervnc-el7
yum install python36 -y
安装自动化测试包
pip3 install selenium -ihttps://pypi.tuna.tsinghua.edu.cn/simple
-
下载chrome 安装
wget -N http://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip
驱动问题
wget http://chromedriver.storage.googleapis.com/70.0.3538.16/chromedriver_linux64.zip -
yum -y install unzip
-
unzip chromedriver_linux64.zip
-
chmod +x chromedriver
bash-4.2# mv -f chromedriver /usr/local/share/chromedriver
bash-4.2# ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
bash-4.2# ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
- yum -y install xorg-x11-drv-openchrome.x86_64