Docker compose down -v compe with WARN[0000] variable is not set

Hi

I have a docker-compose file located in /home/${USER}/elk
There folders under /home/${USER}/elk:
es-sim01
es-sim02
es-sim03

Each es-sim0x folder has a .env file.

So when I run
docker compose --env-file es-sim03/.env up -d
The .env file is working.

After I run docker compose down -v:

WARN[0000] The “DISCOVERY_SEED” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “HOST_IP” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “NODE_NAME” variable is not set. Defaulting to a blank string.
[+] Running 3/3
⠿ Container es-sim03 Removed 2.8s
⠿ Volume elastic-86-distributed_esdata03 Removed 0.0s
⠿ Network elastic-86-distributed_default Removed

To get rid of the warnings, you need to use docker compose --env-file es-sim03/.env down -v.

The effective compose.yml is rendered before passed to the command (up, down), so you will always need to use the same set of arguments regardless of the command and the arguments of the command.

1 Like

Hi Metin

Thank you again for your reply! BTW, do you know how to mark the replay as the solution? I can’t really find that button…

I must admit: I know that only some forum categories allow marking posts as solutions, but I don’t remember which one :blush:

1 Like

Moved the topic to the Compose category. Now you should see the “Solution” button.

2 Likes