A docker image for pwgen
Use this Docker image from the command line in the same way you would with pwgen.
First build the image:
docker build -t pwgen .Now use the image to call pwgen with docker run -i --rm pwgen:
Run pwgen without arguments:
docker run -i --rm pwgenUsage:
docker run -i --rm pwgen -hGenerate some long, complex passwords:
docker run -i --rm pwgen -sync 25Add this to your .bashrc or .zshrc file:
alias pwgen='docker run -i --rm pwgen'The lateset version of this image is published to the Docker Hub. You can use it like this:
docker pull chorrell/pwgen:latest
docker run -i --rm chorrell/pwgen:latestAnd setup an alias like this:
alias pwgen='docker run -i --rm chorrell/pwgen:latest'The lateset version of this image is published to the GitHub Container Registry. You can use it like this:
docker pull ghcr.io/chorrell/pwgen:latest
docker run -i --rm ghcr.io/chorrell/pwgen:latestAnd setup an alias like this:
alias pwgen='docker run -i --rm ghcr.io/chorrell/pwgen:latest'