microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

DOCKER_HOST_IP is not set or is blank #84

Closed LlorandoLau closed 4 years ago

LlorandoLau commented 4 years ago

Hi,

I have run set-env.sh to set DOCKER_HOST_IP and it echos my ip:

but when I run the command to check whether the var is set, it shows: DOCKER_HOST_IP is not set or is blank TIM截图20200407143640

Thanks for your help

cer commented 4 years ago

set-env.sh needs to set environment variables within the current shell, not a nested shell. Run source set-env.sh or . set-env.sh.