ubuntu docker mysql
https://juejin.cn/post/7143148167125532680
启动docker 异常
- docker logs containerid
- You need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD
// 设置MARIADB_ROOT_PASSWORD 密码
docker run --restart always -itd --name mariadb-1 -e MARIADB_ROOT_PASSWORD=sunlight2010 -p 3306:3306 mariadb
安装nginx
apt-get install nginx
nginx -v