Custom DNS in buildkitd.toml file doesn't work inside container

Open
#1,674 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, go
Domain
devops, networking

Research direction

Reproduce the report with the rootless Docker image, a buildkitd.toml containing the [dns] nameservers setting, and the --config option. Trace how buildkitd loads that configuration and how DNS is passed into the container; done means the configured nameserver is used instead of the corporate DNS.

Written by the indexing model from the issue text.

Description

area/rootless kind/bug

Hi,

I'm trying my best to specify a custom DNS using the buildkitd.toml file with no luck ... I'm using the rootless docker image. I didn't tried using my host system. I tried to specify this file :

[dns]
  nameservers = ["8.8.8.8"]

Placing it under /etc/buildkit or by specifying it using the --config option of buildkitd. It seems this configuration is ignored and my corporate dns is used instead.

Could you provide some guidance on how to properly set the dns buildkit will use ?

Thanks a lot

Dominant language
Go
Stars
10.3k
Forks
1.5k
Avg merge
1d 23h
Merged PRs (30d)
48

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moby/buildkit

All issues in moby/buildkit

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.