Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker Alpine image + grpc: Warning: insecure environment read function 'getenv' used

When I used this image: node:6.11.0-alpine to run my service (use GRPC), then keep getting these warnings:

D0622 06:52:01.170502843       1 env_linux.c:66]             Warning: insecure environment read function 'getenv' used
D0622 06:52:01.554446816      12 env_linux.c:66]             Warning: insecure environment read function 'getenv' used
D0622 06:52:01.559295167      14 env_linux.c:66]             Warning: insecure environment read function 'getenv' used
D0622 06:52:01.566036292      13 env_linux.c:66]             Warning: insecure environment read function 'getenv' used
D0622 06:52:01.569975088      15 env_linux.c:66]             Warning: insecure environment read function 'getenv' used

Do I miss any package? How to fix this?

This issue Issue #8104 can be referred.

like image 912
lnshi Avatar asked Jun 22 '17 07:06

lnshi


1 Answers

I believe this has been fixed in grpc-1.23.0 and newer: https://github.com/grpc/grpc/commit/5efa660b41ab05971901f3a7b19e3890ea1e8884

like image 121
Natanael Copa Avatar answered Nov 09 '22 16:11

Natanael Copa