By leeppolis
Today I tried to create a new mySql database on my Dokku container using
dokku mysql:create bookmarks
The container has been created, but it seems it is unable to start. The command
dokku mysql:list
always shows
NAME VERSION STATUS EXPOSED PORTS LINKS
bookmarks mysql:5.6.26 restarting - -
I am unable to stop, restart or destroy this DB.
dokku mysql:destroy bookmarks
! WARNING: Potentially Destructive Action
! This command will destroy bookmarks MySQL service.
! To proceed, type "bookmarks"
> bookmarks
-----> Deleting bookmarks
Deleting container data
! Service is already stopped
Removing container
Error response from daemon: Conflict, You cannot remove a running container. Stop the container before attempting removal or use -f
Error: failed to remove containers: [dokku.mysql.bookmarks]
I also tried to reboot the entire droplet, without any success. Can anyone help me solving this problem? Thank you in advance, Simone
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
So, finally with the help from people from DigitalOcean I’ve been able to stop and destroy that faulty container.
Here is what I did:
Check Docker processes running docker ps -a
Identify the process that is causing the problem, in my case it was: 8549c8ec4e53 mysql:5.6.26 “/entrypoint.sh mysql” 17 hours ago Restarting (1) 2 hours ago 3306/tcp dokku.mysql.bookmarks
Kill the Docker process docker kill 8549c8ec4e53
Remove the container from Dokku dokku mysql:destroy bookmarks
Hope this answer helps others having similar problems.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.