Skip to content

Conversation

calogxro
Copy link

@calogxro calogxro commented Aug 15, 2022

In application.properties the value of the variable
${DOCKER_HOST_IP:localhost}
is supposed to be "localhost" in case DOCKER_HOST_IP is unset, but it doesn't work.

FIX

The correct syntax to do that is
${DOCKER_HOST_IP:-localhost}
with a "-" before localhost

https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html

@calogxro calogxro closed this Aug 15, 2022
@calogxro calogxro reopened this Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant