title: How to fix 'Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only' error in windows server 2019 with DockerProvider service
body: <p>I'm installed docker in windows server 2019 with <code>DockerProvider</code>
  I'm using this code </p>
  
  <pre><code>Install-Module DockerProvider
  Install-Package Docker -ProviderName DockerProvider -RequiredVersion preview
  [Environment]::SetEnvironmentVariable("LCOW_SUPPORTED", "1", "Machine")
  </code></pre>
  
  <p>after that I install <code>Docker-Compose</code> with this code </p>
  
  <pre><code>[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\docker-compose.exe
  </code></pre>
  
  <p>after that I use a docker compose file </p>
  
  <pre><code>version: "3.5"
  
  services:
  
  
    rabbitmq:
      # restart: always
      image: rabbitmq:3-management
      container_name: rabbitmq
      ports:
        - 5672:5672
        - 15672:15672
      networks:
        - myname
      # network_mode: host
      volumes: 
        - rabbitmq:/var/lib/rabbitmq
  
  
  
  networks:
    myname:
      name: myname-network
  
  volumes:
    rabbitmq:
      driver: local
  </code></pre>
  
  <p>everything is Ok up to here
  but after i call <code>http://localhost:15672/</code> url in my browser
  rabbitmq crashes and I see this error in <code>docker logs &lt;container-id&gt;</code></p>
  
  <pre><code>Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only
  </code></pre>
  
  <p>this <code>.yml</code> file is working correctly in <code>docker for windows</code>
  but after running the file in windows server, I see this error</p>