We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To make sure that we are on the same page:
Linux alpha 4.4.4 #1-NixOS SMP Thu Mar 3 23:10:04 UTC 2016 x86_64 GNU/Linux
16.09pre78286.0bf8a1a (Emu)
nix-env (Nix) 1.11.2
16.09pre78286.0bf8a1a
Docker containers can't connect to internet.
$ ping google.com -c1 PING google.com (216.58.220.206) 56(84) bytes of data. 64 bytes from nrt13s36-in-f14.1e100.net (216.58.220.206): icmp_seq=1 ttl=49 time=55.2 ms $ docker run -ti ubuntu ping google.com -c1 ping: unknown host google.com
It seems it has something to do with the DNS used by docker. (8.8.8.8 and 8.8.4.4)
8.8.8.8
8.8.4.4
enable docker in configuration.nix
configuration.nix
virtualisation.docker.enable = true;
run ping from a container
ping
$ docker run -ti ubuntu ping google.com -c1
cc docker maintainers @offlinehacker @tailhook
The text was updated successfully, but these errors were encountered:
Probably a duplicate of #11478; TLDR: systemctl restart docker.
systemctl restart docker
Sorry, something went wrong.
@jgillich Thanks! Setting virtualisation.docker.socketActivation = false; and restarting docker unit solved the problem.
virtualisation.docker.socketActivation = false;
What's the fix for this now that socketActivation doesn't exist anymore?
No branches or pull requests
Basic info
To make sure that we are on the same page:
Linux alpha 4.4.4 #1-NixOS SMP Thu Mar 3 23:10:04 UTC 2016 x86_64 GNU/Linux
16.09pre78286.0bf8a1a (Emu)
nix-env (Nix) 1.11.2
16.09pre78286.0bf8a1a
Describe your issue here
Docker containers can't connect to internet.
It seems it has something to do with the DNS used by docker. (
8.8.8.8
and8.8.4.4
)Step to reproduce
enable docker in
configuration.nix
run
ping
from a containercc docker maintainers @offlinehacker @tailhook
The text was updated successfully, but these errors were encountered: