docker凭据的python绑定big api
docker-pycreds的Python项目详细描述
#码头工人[Circleci](https://circleci.com/gh/shin--/dockerpy-creds/tree/master.svg?style=svg)(https://circleci.com/gh/shin-/dockerpy creds/tree/master)
docker凭据存储api的python绑定
` requirements.txt`,必须在用户系统上安装平台的“docker credential`
可执行文件。
\api用法
``python
import dockerpycreds
store=dockerpycreds.store('secretservice')
store.store(
server='https://index.docker.io/v1/',username='johndo',
secret='hunter2'
)
print(store.list())
print(store.get('https://index.docker.io/v1/')
store.erase('https://index.docker.io/v1/')
```
docker凭据存储api的python绑定
` requirements.txt`,必须在用户系统上安装平台的“docker credential`
可执行文件。
\api用法
``python
import dockerpycreds
store=dockerpycreds.store('secretservice')
store.store(
server='https://index.docker.io/v1/',username='johndo',
secret='hunter2'
)
print(store.list())
print(store.get('https://index.docker.io/v1/')
store.erase('https://index.docker.io/v1/')
```