1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| docker ps
docker exec -it 容器ID /bin/bash
apt-get update
apt-get install apache2-utils
htpasswd -c /etc/nginx/passwd.db 用户名
New password: Re-type new password:
cat /etc/nginx/passwd.db
exit
|