torrust-tracker
torrust-tracker copied to clipboard
Docker Security Overhaul: Create Secure Credentials Guide
Write a guide on how to set up docker to store registry credentials safely. You'll only need this if you publish docker images manually. We are using workflows and storing a token as a GitHub secret.
Use:
- pass
- docker-credential-pass
To store registry credentials encrypted. The default behavior is base64.
# install dependencies
sudo apt install libsecret-1-0 gnupg2 pass
# install docker-credential-pass
wget https://github.com/docker/docker-credential-helpers/releases/download/v0.8.2/docker-credential-pass-v0.8.2.linux-amd64
sudo mv docker-credential-pass-v0.8.2.linux-amd64 /usr/local/bin/docker-credential-pass
sudo chmod +x /usr/local/bin/docker-credential-pass
# check
docker-credential-pass -v
pass init