Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

嗯,现在服务器有点抗不住,做了限流,一般重试几次就可以了 #205

Closed
lhpmain opened this issue Sep 24, 2019 · 4 comments

Comments

@lhpmain
Copy link

lhpmain commented Sep 24, 2019

嗯,现在服务器有点抗不住,做了限流,一般重试几次就可以了

跑在本地的话可以通过 docker 镜像

docker run --rm -p 8000:8000 pjialin/12306-ocr:latest

然后修改 py12306/helpers/api.py

API_FREE_CODE_QCR_API  = 'http://0.0.0.0:8000/check/'

Originally posted by @pjialin in #200 (comment)

@lhpmain
Copy link
Author

lhpmain commented Sep 24, 2019

请问下,支持docker那些版本,我在Centos7的环境下安装18.03.1-ce 不能跑。

@lhpmain
Copy link
Author

lhpmain commented Sep 24, 2019

docker启动容器之后马上又自动关闭了的现像。

@pjialin
Copy link
Owner

pjialin commented Sep 29, 2019

上面提供的参数是以前台任务运行,在后台运行可以使用

docker run -d -p 8000:8000 pjialin/12306-ocr:latest

如果还是有问题,请提供下具体信息,怎么操作的,输出是什么

@pjialin pjialin closed this as completed Sep 29, 2019
@sagehou
Copy link

sagehou commented Dec 24, 2019

有没有办法做个arm的docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants