Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass --add-host command to dapper #46

Open
Shuliyey opened this issue Oct 17, 2017 · 1 comment
Open

How to pass --add-host command to dapper #46

Shuliyey opened this issue Oct 17, 2017 · 1 comment

Comments

@Shuliyey
Copy link

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

@wkjun
Copy link

wkjun commented Sep 11, 2020

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

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

No branches or pull requests

2 participants