Skip to content

Issue running rabbitmq with --platform=linux on Windows #1379

@mersadk

Description

@mersadk

Docker for Windows experimentally supports running Windows and Linux containers simultaneously.
I'm running Windows 10 Pro as a host and Docker for Windows configured to run Windows containers.

When I try to run rabbitmq with following command
docker run -d --platform=linux --hostname hba-rabbitmq --name hba-rabbitmq rabbitmq:3.7-alpine

I get following error

2018-12-11 18:41:47.936 [info] <0.33.0> Application lager started on node 'rabbit@hba-rabbitmq'
2018-12-11 18:41:48.046 [error] <0.5.0> 
Error description:
    init:do_boot/3
    init:start_em/1
    rabbit:start_it/1 line 461
2018-12-11T18:41:48.286076700Z 
BOOT FAILED
===========
2018-12-11T18:41:48.286076700Z 
Error description:
    init:do_boot/3
    init:start_em/1
    rabbit:start_it/1 line 461
    rabbit:'-boot/0-fun-0-'/0 line 306
    rabbit_node_monitor:prepare_cluster_status_files/0 line 130
    rabbit_node_monitor:write_cluster_status/1 line 144
throw:{error,{could_not_write_file,"/var/lib/rabbitmq/mnesia/rabbit@hba-rabbitmq/cluster_nodes.config",
                                   eacces}}
Log file(s) (may contain more information):
   <stdout>
2018-12-11T18:41:48.286076700Z 
    rabbit:'-boot/0-fun-0-'/0 line 306
    rabbit_node_monitor:prepare_cluster_status_files/0 line 130
    rabbit_node_monitor:write_cluster_status/1 line 144
throw:{error,{could_not_write_file,"/var/lib/rabbitmq/mnesia/rabbit@hba-rabbitmq/cluster_nodes.config",
                                   eacces}}
Log file(s) (may contain more information):
   <stdout>
{"init terminating in do_boot",{error,{could_not_write_file,"/var/lib/rabbitmq/mnesia/rabbit@hba-rabbitmq/cluster_nodes.config",eacces}}}
init terminating in do_boot ({error,{could_not_write_file,/var/lib/rabbitmq/mnesia/rabbit@hba-rabbitmq/cluster_nodes.config,eacces}})
Crash dump is being written to: /var/log/rabbitmq/erl_crash.dump...done

When I switch to Linux containers and run same command (without --platform=linux) then it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions