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

部分 docker 版本的 ce 识别 不准确 #28

Open
Gongzq5 opened this issue Mar 7, 2020 · 0 comments
Open

部分 docker 版本的 ce 识别 不准确 #28

Gongzq5 opened this issue Mar 7, 2020 · 0 comments

Comments

@Gongzq5
Copy link

Gongzq5 commented Mar 7, 2020

比如:

image

>>> import docker
>>> client = docker.from_env()
>>> version = client.version()[u'Version']
>>> version
'19.03.7'
>>>

version中没有ce子串,没有应用修改 /etc/docker/daemon.json 的换镜像方式

image

    if "ce" in version:
        set_docker_config_ce(best_mirror_url)
    else:
        set_docker_config(best_mirror_url)

此处的识别有点毛病

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

1 participant