furoblog’s blog

妻と一緒にはじめました。1日1更新が目標です。

【Docker】Dockerを使った開発でDBが起動しなくなった

docker

いつも通り開発していて、何も変更していないのに突然起動しなくなった。

原因は結論から言うとディスク容量がいっぱいだったことである。

 

Dockerのディスク容量を整理するコマンド

# お掃除
docker volume rm $(docker volume ls -qf dangling=true)

 

で掃除が可能です。

詰まっている人の役に立てば!!

 

エラー内容

一応エラー内容も記載しておきます。

 

2019-03-25 09:15:46 41 [ERROR] InnoDB: Error in creating ./ibdata1: probably out of disk space
2019-03-25 09:15:46 41 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2019-03-25 09:15:46 41 [ERROR] Plugin 'InnoDB' init function returned error.
2019-03-25 09:15:46 41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-03-25 09:15:46 41 [ERROR] Unknown/unsupported storage engine: InnoDB
2019-03-25 09:15:46 41 [ERROR] Aborting

 

Docker

Docker

 

furoblog.hatenablog.com