Skip to content

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

Description

@Gongzq5

比如:

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)

此处的识别有点毛病

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions