#!/bin/bash
username="${1:?Missing username}"
docker run --rm -it alpine sh -c "apk add apache2-utils >/dev/null; htpasswd -Bn $username"