Bug 1394474 - docker containers can't resolve public DNS records on Fedora 24
Summary: docker containers can't resolve public DNS records on Fedora 24
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: firewalld
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-12 12:07 UTC by Javier Ramirez
Modified: 2016-11-15 15:17 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-15 15:17:07 UTC
Type: Bug


Attachments (Terms of Use)

Description Javier Ramirez 2016-11-12 12:07:45 UTC
Description of problem:

In Fedora 24 after installing and enabling docker, docker container can't resolve public DNS records until you run an "iptables -F"

Version-Release number of selected component (if applicable):
docker-1.10.3-54.gite03ddb8.fc24.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install and enable docker
2. Run "docker run -it centos curl redhat.com"

Actual results:
# docker run -it centos curl redhat.com
curl: (6) Could not resolve host: redhat.com; Unknown error

Expected results:
dns to be resolved 

Additional info:
Running "iptables -F" solve the issue.

I trying adding the docker0 interface to FedoraWorkstation and/or "trusted" firewalld zones but it did not make any difference.

Comment 1 Javier Ramirez 2016-11-12 12:11:30 UTC
My initial problem was using "oc cluster up" and trying to build some templates, obviously that also fails as reported here:

https://github.com/openshift/origin/issues/10139

But I think that the problem should be solved by amending firewalld rules, not sure if the component I should select is docker or firewalld though.

Comment 2 Daniel Walsh 2016-11-13 10:27:21 UTC
This seems like a configuration issue.  We have not had other reports of problems with docker on Fedora 24

Comment 3 Javier Ramirez 2016-11-15 15:17:07 UTC
I(In reply to Daniel Walsh from comment #2)
> This seems like a configuration issue.  We have not had other reports of
> problems with docker on Fedora 24

Yes, testing in a fresh environment it works fine, so I should check my networkmanager/dnsmasq/firewalld configuration.


Note You need to log in before you can comment on or make changes to this bug.