Docker镜像在本地构建成功,但是运行起来的时候,镜像内部的Mysql启动出错
怪我咯
怪我咯 2017-04-21 10:56:46
0
2
793
docker version
Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version: 0.9.1
Git commit (server): 3600720
Go version (server): go1.2.1
git clone https://github.com/sameersbn/docker-redmine.git
cd docker-redmine
docker build -t xx/redmine .
docker logs -f $(docker run -d xx/redmine)
User: root Password: eiThoo9iecoa
sshd: started
mysqld: ERROR (abnormal termination)

看到吧。是mysqld启动问题。

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
左手右手慢动作

I am maintaining a mysql image, which contains volume processing code. You can run it to see if the image can run normally.
https://github.com/tutumcloud/tutum-docker-mysql

In addition, another blog I wrote has an introduction to mysql volume. You can refer to it: http://blog.tutum.co/2014/05/27/containerize-your-database-volume-with-tutum-mysql -images/

Ty80

I also encountered this problem. I could start it normally without adding the -v /host/data:/var/lib/mysql parameter
After adding it, the owner of /var/lib/mysql of the container is not mysql. This is a permission problem, and then I can’t get up
It seems like this

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template