Docker Community Forums

Share and learn in the Docker community.

BUG: Docker CE windows 2.2.0 fails to run rabbitmq with volume mapping

To reproduce, create a folder called c:\docker_test_volume (or any folder on a volume that is enabled for sharing with Docker).

Run: docker run --rm -it -v c:\docker_test_volume:/var/lib/rabbitmq/mnesia rabbitmq

The following error results:

>docker run --rm -it -v c:\docker_test_volume:/var/lib/rabbitmq/mnesia rabbitmq
Preformatted text`2020-01-29 22:22:38.687 [info] <0.8.0> Feature flags: list of feature flags found:
2020-01-29 22:22:38.687 [info] <0.8.0> Feature flags:   [ ] implicit_default_bindings
2020-01-29 22:22:38.687 [info] <0.8.0> Feature flags:   [ ] quorum_queue
2020-01-29 22:22:38.687 [info] <0.8.0> Feature flags:   [ ] virtual_host_metadata
2020-01-29 22:22:38.687 [info] <0.8.0> Feature flags: feature flag states written to disk: yes
2020-01-29 22:22:40.706 [error] <0.8.0>
Error description:
    init:do_boot/3
    init:start_em/1
    rabbit:start_it/1 line 474
    rabbit:'-boot/0-fun-0-'/0 line 322
    rabbit_node_monitor:write_cluster_status/1 line 134
throw:{error,{could_not_write_file,"/var/lib/rabbitmq/mnesia/rabbit@17c074ad730e/cluster_nodes.config",
                                   ebusy}}
Log file(s) (may contain more information):
   <stdout>

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

Error description:
    init:do_boot/3
    init:start_em/1
    rabbit:start_it/1 line 474
    rabbit:'-boot/0-fun-0-'/0 line 322
    rabbit_node_monitor:write_cluster_status/1 line 134
throw:{error,{could_not_write_file,"/var/lib/rabbitmq/mnesia/rabbit@17c074ad730e/cluster_nodes.config",
                                   ebusy}}
Log file(s) (may contain more information):
   <stdout>

{"init terminating in do_boot",{error,{could_not_write_file,"/var/lib/rabbitmq/mnesia/rabbit@17c074ad730e/cluster_nodes.config",ebusy}}}
init terminating in do_boot ({error,{could_not_write_file,/var/lib/rabbitmq/mnesia/rabbit@17c074ad730e/cluster_nodes.config,ebusy}})

Crash dump is being written to: /var/log/rabbitmq/erl_crash.dump...done

This does NOT happen with v2.1.0.5.

Anyone with the same experience?

I am having the same experience.

Anyone have any suggestions on how to fix it?

Regards,

Cesar Romero