`
dcj3sjt126com
  • 浏览: 1825916 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

docker空间不足 Unable to open the database file: unable to open database fi

 
阅读更多

命令行报错如下:

Unable to open the database file: unable to open database file

网页上报错如下:

Database Exception – yii\db\Exception

 

SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_1_0.MYI' (Errcode: 28 - No space left on device)

The SQL being executed was: SHOW FULL COLUMNS FROM `user`

Error Info: Array

(

    [0] => HY000

    [1] => 1

    [2] => Can't create/write to file '/tmp/#sql_1_0.MYI' (Errcode: 28 - No space left on device)

)

Caused by: PDOException

 

SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_1_0.MYI' (Errcode: 28 - No space left on device)

 

当空间不足了, 将停止的容器都删除

docker rm $(docker ps --all -q -f status=exited)

删除没有使用的镜像

docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")

 

之后发现docker ps -a

有一个app和一个db的状态是Created的, 然后我docker rm containerid 将对应的两个删除, 问题解雇 了

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics