docker_credential
A Rust library for reading a user's Docker credentials from config.
Parses a docker config.json
either at the loction specified by the
$DOCKER_CONFIG
environment variable or in $HOME/.docker
. If credential
helpers or a credential store is configured these will be contacted to retrieve
the requested credential.
Usage
Add the following to your cargo.toml
:
[]
= "1.0"
Then invoke from within your along the lines of:
use docker_credential;
use DockerCredential;
let credential = get_credential.expect;
match credential ;