Skip to content

The .erlang.cookie file content does not have the expected initial value. #3351

@myesn

Description

@myesn

The cookie file content does not have the expected initial value.

docker-compose.yml

version: '3.8'

services:
  rabbitmq:
    image: rabbitmq:3.9.5-management
    hostname: rabbit01
    container_name: rabbitmq
    restart: always
    environment: 
      - RABBITMQ_ERLANG_COOKIE=GBMQWMMYXWMEBYDDHYVQ
    volumes:
      - ./dockerfiles/rabbitmq/data:/var/lib/rabbitmq3
      - ./dockerfiles/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf      

After starting the service, I go inside the container through exec, and then view /root/.erlang.cookie and /var/lib/rabbitmq/.erlang.cookie, The contents of a cookie file is TVCCUOTBYAGPINTFQKXX.

image

Could you tell me what I did wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions