lifei6671 / docker-smartwiki

SmartWiki的Docker镜像
https://www.iminho.me
Apache License 2.0
8 stars 6 forks source link

删除已有容器后重新创建容器报admin帐号长度问题 #2

Closed archer-christ closed 7 years ago

archer-christ commented 7 years ago

按照README文档上

docker run --name smartwiki -p 80:80 -e DB_HOST=192.168.4.104 -e DB_PORT=3306 -e DB_DATABASE=smartwiki -e DB_USERNAME=root -e DB_PASSWORD=123456 -e ACCOUNT=admin -e PASSWORD=123456 -e EMAIL=admin@iminho.me -e APACHE_HOST=demo.iminho.me -v /var/www/html:/var/www/html/public/uploads -d daocloud.io/lifei6671/docker-smartwiki:latest

运行容器后可以正常访问,之后删除此容器使用

docker run --name smartwiki -p 80:80 -e DB_HOST=192.168.4.104 -e DB_PORT=3306 -e DB_DATABASE=smartwiki -e DB_USERNAME=root -e DB_PASSWORD=123456 -v /var/www/html:/var/www/html/public/uploads -d daocloud.io/lifei6671/docker-smartwiki:latest

命令启动容器会报admin帐号长度问题

lifei6671 commented 7 years ago

新版本去掉了手动安装的过程,全部换成了自动安装了。你第二个命令是手动安装的命令,所以会出错。