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啟動問題。
我有在維護一個mysql的鏡像,其中有涉及volume的處理程式碼,你可以運行看看是否這個鏡像可以正常運作。
https://github.com/tutumcloud/tutum-docker-mysql
另外我寫的另一篇blog裡面有關於mysql volume的介紹,可以參考一下:http://blog.tutum.co/2014/05/27/containerize-your-database-volume-with-tutum-mysql -images/
我也遇到了這個問題,我不加 -v /host/data:/var/lib/mysql 參數 就可以正常啟動
加了之後 容器的 /var/lib/mysql 擁有者不是mysql 引起的權限問題,然後就起不來了
貌似是這樣