Open sidoruka opened 4 years ago
Backport to release/0.15
Backported to release/0.15
via 476f521aed3f308e1e8f30febae341385f32fe8c.
It will be also nice to have the same proxy parameters to be passed automatically during docker build
call as well as docker run
.
Verified. Docs were updated via the #991
Background At the moment, DIND containers configuration includes only registry credentials and a couple of driver settings. In certain environments, it is not possible to access external networks (e.g. for the packages installation) without the
http(s)/no_proxy
settings. So the users have to pass this manually usingdocker run -e http_proxy=...
option.Approach
launch.dind.container.vars
(nullable, string) listing all the variables, which shall be passed to the DIND containers (if they are set for the host environment)launch.dind.container.vars
preference:http_proxy
,https_proxy
,no_proxy
,API
,API_TOKEN
CP_CAP_DIND_CONTAINER_NO_VARS
, which disables this behavior