1.dockerfile
FROM daocloud.io/library/ubuntu
RUN apt update -y && apt install python -y && apt install python-pip -y
RUN pip install selenium
2.将要执行的python脚本放入镜像,并使用镜像执行
docker run -v $PWD/:/root -w /root selenium-python python test.py
1.dockerfile
FROM daocloud.io/library/ubuntu
RUN apt update -y && apt install python -y && apt install python-pip -y
RUN pip install selenium
2.将要执行的python脚本放入镜像,并使用镜像执行
docker run -v $PWD/:/root -w /root selenium-python python test.py