A simple Docker Registry with Basic Auth Nginx Server and Let's Encrypt certificate
You have to create a .htpasswd
file and you can use the following command:
htpasswd -c registry.htpasswd username
#!/usr/bin/env bash | |
if [ $# -lt 1 ];then | |
echo Usage: `basename $0` image 1>&2 | |
exit 1 | |
fi | |
set -e | |
IMAGE=$1 | |
CID=$(docker ps | grep $IMAGE | awk '{print $1}') |
package main | |
import ( | |
"fmt" | |
"regexp" | |
"strings" | |
) | |
var camel = regexp.MustCompile("(^[^A-Z0-9]*|[A-Z0-9]*)([A-Z0-9][^A-Z]+|$)") |
I hereby claim:
To claim this, I am signing this object:
Based on:
Assumptions
/dev/nvme0n1
is the system's disk, and /dev/sda
is USB drive.