docker_args.py 文件源码

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

项目:gopythongo 作者: gopythongo 项目源码 文件源码
def add_shared_args(parser: configargparse.ArgumentParser) -> None:
    global _docker_shared_args_added

    if not _docker_shared_args_added:
        gr_docker_shared = parser.add_argument_group("Docker common parameters (Builder and Store)")
        gr_docker_shared.add_argument("--docker-api", dest="docker_api", default="unix://var/run/docker.sock",
                                      help="The Docker API endpoint as a http/unix URL. (Default: "
                                           "unix://var/run/docker.sock)")
        gr_docker_shared.add_argument("--docker-tls-client-cert", dest="docker_tls_client_cert", default=None,
                                      help="Path to a SSL client certificate in PEM format to use when connecting to "
                                           "the Docker API.")
        gr_docker_shared.add_argument("--docker-tls-verify", dest="docker_tls_verify", default=False,
                                      help="Set this to a CA certificate PEM file to verify that the Docker server's "
                                           "TLS certificate was signed by this CA.")
        gr_docker_shared.add_argument("--docker-ssl-version", dest="docker_ssl_version", default=5,
                                      help="Set to 3 (TLSv1), 4 (TLSv1.1) or 5 (TLSv1.2) to force the connection to "
                                           "use a particular protocol version. (Default: 5).")
        gr_docker_shared.add_argument("--docker-tls-noverify-hostname", dest="docker_dont_verify_hostname",
                                      default=False, action="store_true",
                                      help="Set this if the Docker API client should skip verifying the Docker API's "
                                           "hostname.")

    _docker_shared_args_added = True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号