Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

一个自动安装docker与运行docker镜像的脚本 #8

Open
RainySY opened this issue May 23, 2020 · 7 comments
Open

一个自动安装docker与运行docker镜像的脚本 #8

RainySY opened this issue May 23, 2020 · 7 comments

Comments

@RainySY
Copy link
Contributor

RainySY commented May 23, 2020

一个自动安装docker与运行docker镜像的脚本
我的网盘链接

@luooofan
Copy link
Owner

@kimjungwha 测试后重写了sh脚本
支持debian,ubuntu,centos,redhat
在ubuntu和centos测试成功
使用方法

  1. sudo chmod +x autocx.sh
  2. sudo ./autocx.sh

autocx.zip

该issue将保持open
欢迎测试与反馈
感谢 @chenaidairong @kimjungwha👍👍👍

@luooofan luooofan mentioned this issue May 28, 2020
@Everless321
Copy link

docker在国内服务器的配置速度太慢了 是镜像服务器的问题吗 用的一键脚本

@Everless321
Copy link

Traceback (most recent call last):
File "./src/#_courses.py", line 444, in
process.work()
File "./src/#_courses.py", line 228, in work
courses_lt = self._login()
File "./src/#_courses.py", line 185, in _login
p=Popen(['./src/viu', 'login_vercode.png'])
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './src/viu'

docker容器内报错

@luooofan
Copy link
Owner

自动配置脚本的具体情况我不太清楚,需要 @kimjungwha
根据你所提供的信息,目前你应该是已经配好了docker,但是在容器内执行脚本的时候出现了权限问题,你可以试试这两个办法:

  • 查看并更改./src/viu的权限
  • 执行脚本时加上sudo

@ghost
Copy link

ghost commented Jul 16, 2020

docker在国内服务器的配置速度太慢了 是镜像服务器的问题吗 用的一键脚本

使用脚本安装软件时速度慢,请更换国内的软件源,docker 拉取镜像时速度慢,可以更换阿里云的镜像加速器

@ghost
Copy link

ghost commented Jul 16, 2020

Traceback (most recent call last):
File "./src/#_courses.py", line 444, in
process.work()
File "./src/#_courses.py", line 228, in work
courses_lt = self._login()
File "./src/#_courses.py", line 185, in _login
p=Popen(['./src/viu', 'login_vercode.png'])
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './src/viu'

docker容器内报错

我复现了这个报错,在使用学号登录时,调用 viu 填写验证码时的报错,第一次运行 viu 时提示无权限,授权后提示找不到文件,很遗憾我还没有解决问题。

  • 您可以使用例如 cacaview 这样的同类软件,vim src/#_courses.py,将里面的 ./src/viu 替换成您使用的软件
  • 也可以使用手机号登录(推荐)

@19819068211
Copy link

Welcome to Huawei Cloud Service

Last login: Tue Apr 20 08:54:33 2021 from 223.104.192.190
[root@hecs-x-medium-2-win-20210416095943 ~]# docker exec -it autocx sh
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
~ # vim logindata_phone.txt

~ # python3 autocx.py
Set mode: single rate: 1.00 noans_num:5
Welcome To Multi-Autocx!
check your phonenum: 19819068211
check your password: 19772001wqwq
Traceback (most recent call last):
File "./src/#_courses.py", line 447, in
process.work()
File "./src/#_courses.py", line 236, in work
with StartDriver() as chrome_driver:
File "/root/src/startdriver.py", line 13, in enter
self.driver=StartDriver.startchrome()
File "/root/src/startdriver.py", line 79, in startchrome
return webdriver.Chrome(options=chrome_options)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init
desired_capabilities=desired_capabilities)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/lib/chromium/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.38 (f91d32489882be7df38da3422a19713bfd113fa5),platform=Linux 4.18.0-240.10.1.el8_3.x86_64 x86_64)
Screenshot_20210420_090025_com sonelli juicessh
请问出现如上报错应该如何处理

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants