{"id":1187,"date":"2016-05-14T15:03:56","date_gmt":"2016-05-14T15:03:56","guid":{"rendered":"http:\/\/10sa.com\/sql_stories\/?p=1187"},"modified":"2016-05-14T15:03:56","modified_gmt":"2016-05-14T15:03:56","slug":"docker-with-mysql-not-starting","status":"publish","type":"post","link":"http:\/\/10sa.com\/sql_stories\/?p=1187","title":{"rendered":"Docker with mysql not starting"},"content":{"rendered":"<p>How to check what happend. I add that docker logs -f container_name | container id neither does work. The solution for me is to remove the actual container (condition that it has some persistent storage) and run new one with entrypoint parameter replaced:<\/p>\n<p>Was:<\/p>\n<pre lang=bash>\r\ndocker run  -v \/dockers_persistent\/data\/database_1:\/var\/lib\/mysql -v \\\r\nMYSQL_ROOT_PASSWORD='*******' -d f44353327cb6\r\n<\/pre>\n<p>To be:<\/p>\n<pre lang=bash>\r\ndocker run <span style=\"color: red; font-weight: bold\">-it --entrypoint \/bin\/bash<\/span>  \\\r\n-v \/dockers_persistent\/data\/database_1:\/var\/lib\/mysql -v \\\r\nMYSQL_ROOT_PASSWORD='*******' -d f44353327cb6\r\n<\/pre>\n<p>Now, you can execute the adequate app &#8211; in my case it was mysqld.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to check what happend. I add that docker logs -f container_name | container id neither does work. The solution for me is to remove the actual container (condition that it has some persistent storage) and run new one with entrypoint parameter replaced: Was: docker run -v \/dockers_persistent\/data\/database_1:\/var\/lib\/mysql -v \\ MYSQL_ROOT_PASSWORD=&#8217;*******&#8217; -d f44353327cb6 To be: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1187"}],"collection":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1187"}],"version-history":[{"count":2,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":1189,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions\/1189"}],"wp:attachment":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}