Docker 容器未启动,因为 rabbit 磁盘空间不足

标签 docker rabbitmq docker-compose

RabbitMQ 似乎占用了太多磁盘空间并且无法启动。如何在我的 Mac 上删除它?我似乎找不到它。我已经尝试删除所有图像和容器,然后从头开始重建,希望它能解决问题。

$docker logs rabbitmq

              RabbitMQ 3.6.6. Copyright (C) 2007-2016 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: tty
  ######  ##        tty
  ##########
              Starting broker...

=INFO REPORT==== 11-Dec-2016::10:06:13 ===
Starting RabbitMQ 3.6.6 on Erlang 19.0.7
Copyright (C) 2007-2016 Pivotal Software, Inc.
Licensed under the MPL.  See http://www.rabbitmq.com/

=INFO REPORT==== 11-Dec-2016::10:06:13 ===
node           : rabbit@538f7beedbe3
home dir       : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/rabbitmq.config
cookie hash    : kOyaDgypIBcP8tZ01/3Fdg==
log            : tty
sasl log       : tty
database dir   : /var/lib/rabbitmq/mnesia/rabbit@538f7beedbe3

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
Memory limit set to 799MB of 1997MB total.

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
Disk free limit set to 50MB

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
Disk free space insufficient. Free bytes:0 Limit:50000000

=WARNING REPORT==== 11-Dec-2016::10:06:18 ===
disk resource limit alarm set on node rabbit@538f7beedbe3.

**********************************************************
*** Publishers will be blocked until this alarm clears ***
**********************************************************

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
Limiting to approx 1048476 file handles (943626 sockets)

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
FHC read buffering:  OFF
FHC write buffering: ON

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
Database directory at /var/lib/rabbitmq/mnesia/rabbit@538f7beedbe3 is empty. Initialising from scratch...

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: mnesia
    exited: stopped
    type: temporary

=CRASH REPORT==== 11-Dec-2016::10:06:18 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.116.0>
    registered_name: []
    exception exit: {{cannot_create_schema,
                         {file_error,
                             "/var/lib/rabbitmq/mnesia/rabbit@538f7beedbe3/rabbit@538f7beedbe3514846847780.BUPTMP",
                             enospc}},
                     {rabbit,start,[normal,[]]}}
      in function  application_master:init/4 (application_master.erl, line 134)
    ancestors: [<0.115.0>]
    messages: [{'EXIT',<0.117.0>,normal}]
    links: [<0.115.0>,<0.31.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 98
  neighbours:

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: rabbit
    exited: {{cannot_create_schema,
                 {file_error,
                     "/var/lib/rabbitmq/mnesia/rabbit@538f7beedbe3/rabbit@538f7beedbe3514846847780.BUPTMP",
                     enospc}},
             {rabbit,start,[normal,[]]}}
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: ranch
    exited: stopped
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: os_mon
    exited: stopped
    type: temporary


BOOT FAILED
===========

Error description:
   {could_not_start,rabbit,
       {{cannot_create_schema,
            {file_error,
                "/var/lib/rabbitmq/mnesia/rabbit@538f7beedbe3/rabbit@538f7beedbe3514846847780.BUPTMP",
                enospc}},
        {rabbit,start,[normal,[]]}}}

Log files (may contain more information):
   tty
   tty


=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: amqp_client
    exited: stopped
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: syntax_tools
    exited: stopped
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: rabbit_common
    exited: stopped
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: xmerl
    exited: stopped
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: asn1
    exited: stopped
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
    application: inets
    exited: stopped
    type: temporary

=INFO REPORT==== 11-Dec-2016::10:06:18 ===
Error description:
   {could_not_start,rabbit,
       {{cannot_create_schema,
            {file_error,
                "/var/lib/rabbitmq/mnesia/rabbit@538f7beedbe3/rabbit@538f7beedbe3514846847780.BUPTMP",
                enospc}},
        {rabbit,start,[normal,[]]}}}

Log files (may contain more information):
   tty
   tty

{"init terminating in do_boot",{could_not_start,rabbit,{{cannot_create_schema,{file_error,"/var/lib/rabbitmq/mnesia/rabbit@538f7beedbe3/rabbit@538f7beedbe3514846847780.BUPTMP",enospc}},{rabbit,start,[normal,[]]}}}}
init terminating in do_boot ()

Crash dump is being written to: erl_crash.dump...

我可以在我的 docker-compose.yml 中为 Rabbit 定义一个物理卷吗?

最佳答案

这两个命令完成了这项工作:

 docker rmi $(docker images -q) //removes all images
 docker volume rm $(docker volume ls -f dangling=true -q) // removes all volumes

关于Docker 容器未启动,因为 rabbit 磁盘空间不足,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41085116/

相关文章:

php - Docker phpmyadmin忽略了我的php.ini配置

mongodb - Dockerfile > 运行 mongoimport => 失败 : error connecting to db server: no reachable servers

laravel - Laravel指定与 `.env`不同的名称或将ingore设为 `.env`,以免与docker和docker-compose冲突

docker - 连接总线失败 : Host is down in ubuntu

docker - neo4j docker服务未启动

rabbitmq - 查询RabbitMQ生产者和消费者的详细信息

python - Docker compose 安装需求.txt

mysql - 如何在我的 kubernetes 集群之外访问 mysql?

rabbitmq - 在 RabbitMQ 3+ 中删除不存在的队列不会产生预期的错误;为什么?

docker - pika.BlockingConnection()在容器内失败,在VM中运行良好