Add docker_cred_helper

This commit is contained in:
2023-08-27 05:20:39 +00:00
commit 361a9c1c5d
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/bin/bash
sudo apt-get update
sudo apt-get install pass
sudo apt-get gnupg2
gpg2 --generate-key
echo "Run pass init Your GPG Key ID to init your key, then run docker-credential-helper installer script"

View File

@ -0,0 +1,16 @@
#!/bin/bash
# substitute with the latest version
url=https://github.com/docker/docker-credential-helpers/releases/download/v0.8.0/docker-credential-pass-v0.8.0.linux-amd64
bin_dir=/usr/local/bin
sudo mkdir -p $bin_dir
sudo mv $(basename $url) $(bin_dir)/docker-credential-pass
chmod +x $(bin_dir)/docker-credential-pass
export PATH=$PATH:/usr/local/bin
docker-credential-pass list