dapper icon indicating copy to clipboard operation
dapper copied to clipboard

How to pass `--add-host` command to dapper

Open Shuliyey opened this issue 8 years ago • 1 comments

when performing docker build, sometimes you need service container running such as mariadb, when doing magento build

e.g.

docker build --add-host mariadb:`docker inspect -f '{{.NetworkSettings.IPAddress}}' mariadb` -t magento_app.

is there a way to pass --add-host to dapper

Shuliyey avatar Oct 17 '17 00:10 Shuliyey

reffer https://github.com/rancher/dapper#dapper_run_args

use DAPPER_RUN_ARGS in Dockerfile.dapper

for example:

ENV DAPPER_RUN_ARGS --add-host github.com:52.78.231.108 --add-host kubernetes-charts.storage.googleapis.com:172.217.31.240 --add-host storage.googleapis.com:172.217.31.240

wkjun avatar Sep 11 '20 01:09 wkjun