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

--privileged flag required by zoekt-indexserver, repo-updater, indexer, query-runner; why? #1

Closed
slimsag opened this issue Oct 22, 2018 · 2 comments
Labels
bug Something isn't working in-development

Comments

@slimsag
Copy link
Member

slimsag commented Oct 22, 2018

Without this flag, on Docker for Mac the DNS lookup of other containers fails.

@slimsag slimsag added bug Something isn't working help wanted Extra attention is needed labels Oct 22, 2018
@slimsag slimsag changed the title --privileged flag required by zoekt-indexserver, repo-updater, indexer; why? --privileged flag required by zoekt-indexserver, repo-updater, indexer, query-runner; why? Oct 23, 2018
@slimsag
Copy link
Member Author

slimsag commented Oct 29, 2018

Apparently, installing bind-tools fixes the issue. I noticed this because after installing the dig tool, DNS lookup suddenly started passing:

/ # nslookup sourcegraph-frontend-internal
nslookup: can't resolve '(null)': Name does not resolve

Name:      sourcegraph-frontend-internal
Address 1: 172.29.0.16 sourcegraph-frontend-internal.sourcegraph
/ # dig sourcegraph-frontend-internal
sh: dig: not found
/ # apk add --no-cache bind-tools
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/5) Installing libgcc (6.4.0-r9)
(2/5) Installing json-c (0.13.1-r0)
(3/5) Installing libxml2 (2.9.8-r1)
(4/5) Installing bind-libs (9.12.2_p1-r0)
(5/5) Installing bind-tools (9.12.2_p1-r0)
Executing busybox-1.28.4-r1.trigger
OK: 11 MiB in 25 packages
/ # nslookup sourcegraph-frontend-internal
Server:		127.0.0.11
Address:	127.0.0.11#53

Non-authoritative answer:
Name:	sourcegraph-frontend-internal
Address: 172.29.0.16

After discovering this, it became apparent I am not the only one to run into this: nodejs/docker-node#339

I will update our images to all install bind-tools.

@slimsag slimsag added in-development and removed help wanted Extra attention is needed labels Oct 29, 2018
@slimsag
Copy link
Member Author

slimsag commented Oct 29, 2018

slimsag added a commit that referenced this issue Oct 29, 2018
slimsag added a commit that referenced this issue Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-development
Projects
None yet
Development

No branches or pull requests

1 participant