commands.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:docl 作者: cloudify-cosmo 项目源码 文件源码
def _get_docker_version():
    try:
        version = quiet_docker.version('-f', '{{.Client.Version}}').strip()
    except sh.ErrorReturnCode as e:
        version = e.stdout.strip()

    # Replacing the -ce in the version with .ce, as the versions in
    # https://yum.dockerproject.org/repo/main/centos/7/Packages/
    # adhere to this notation
    if version.endswith('-ce'):
        version = version.replace('-ce', '.ce')
    return version
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号