我需要使用--device-cgroup-rule
选项,它可以与命令配合使用docker run
,但我也想在我的 docker-compose.yml 文件中使用它。但我在文档中没有找到它。至少有可能吗?
如何使用 GitPython 库在禁用 SSL 检查的情况下进行克隆。下面的代码...
import git
x = git.Repo.clone_from('https://xxx', '/home/xxx/lala')
Run Code Online (Sandbox Code Playgroud)
...产生此错误:
Error: fatal: unable to access 'xxx': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Run Code Online (Sandbox Code Playgroud)
我知道“export GIT_SSL_NO_VERIFY=1”,但是如何在 python 库中实现它?