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