无人机“没有足够的权限使用特权模式”(drone “Insufficient privileges to use privileged mode”)
我在gogs git仓库中写了一个.drone.yml文件。 但是当我推动git变化时,无人机web告诉我没有足够的权限来使用特权模式。 我该如何解决它?
这是我的.drone.yml:
pipeline: build: image: test-harbor.cx580.com/centos/centos7:Beat2.0 privileged: true commands: - mkdir -p /data/k8s/drone/jar-db/ - \cp README.md /data/k8s/drone/jar-db/ - ls /data/k8s/drone/jar-db/ push: image: plugins/docker repo: test-harbor.cx580.com/centos/centos7:Beat2.0 registry: test-harbor.cx580.com username: ci password: '1qaz!QAZ' tags: - latest
我在谷歌搜索,这个websize告诉我
Your repository isn't in the trusted list of repositories. Get in touch with Devops and ask them to trust it
Your repository isn't in the trusted list of repositories. Get in touch with Devops and ask them to trust it
但是,我如何信任该存储库?并且我在无人机网络中获得设置,并检查设置中的可信任,但它也失败了: img
i had write a .drone.yml in my gogs git repository. but when i push the git change , drone web tell me Insufficient privileges to use privileged mode. how can i fix it?
this is my .drone.yml:
pipeline: build: image: test-harbor.cx580.com/centos/centos7:Beat2.0 privileged: true commands: - mkdir -p /data/k8s/drone/jar-db/ - \cp README.md /data/k8s/drone/jar-db/ - ls /data/k8s/drone/jar-db/ push: image: plugins/docker repo: test-harbor.cx580.com/centos/centos7:Beat2.0 registry: test-harbor.cx580.com username: ci password: '1qaz!QAZ' tags: - latest
i had search in google, this websize tell me
Your repository isn't in the trusted list of repositories. Get in touch with Devops and ask them to trust it
but ,how can i trusted the repositorie?and i get setting in the drone web , and check the Trusted in the settings,but it also failed : img
原文:https://stackoverflow.com/questions/49153218