Jenkins in container is offline

36 views
Skip to first unread message

Hung Suen

unread,
Sep 21, 2016, 4:25:20 PM9/21/16
to Jenkins Users
I posted the topic to Jenkins developers. Should have posted it here.
https://groups.google.com/d/topic/jenkinsci-dev/LCPjMbKCmGM/discussion

nicolas de loof

unread,
Sep 21, 2016, 5:25:56 PM9/21/16
to jenkins...@googlegroups.com
Try running this :

docker run --rm -it jenkins bash

jenkins@b2b041c448b1:/$ ping google.com

PING google.com (172.217.19.142): 56 data bytes

64 bytes from 172.217.19.142: icmp_seq=0 ttl=37 time=0.147 ms

64 bytes from 172.217.19.142: icmp_seq=1 ttl=37 time=0.338 ms

^C--- google.com ping statistics ---





2016-09-21 22:25 GMT+02:00 Hung Suen <sue...@gmail.com>:
I posted the topic to Jenkins developers. Should have posted it here.
https://groups.google.com/d/topic/jenkinsci-dev/LCPjMbKCmGM/discussion

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b3c1a12a-f2f7-44ab-9227-9546cd228853%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Baptiste Mathus

unread,
Sep 21, 2016, 5:46:31 PM9/21/16
to jenkins...@googlegroups.com

@Nicolas please see the other corresponding thread to keep things together. And let's leave that one die.


Alex Sun

unread,
Sep 21, 2016, 6:43:20 PM9/21/16
to jenkins...@googlegroups.com

Merging thread…

 

Both host and docker are latest version.

 

From: bma...@gmail.com [mailto:bma...@gmail.com] On Behalf Of Baptiste Mathus
Sent: Wednesday, September 21, 2016 1:36 PM
To: Hung Suen <sue...@gmail.com>; jenkins...@googlegroups.com
Subject: Re: Jenkins hosted in container is offline

 

(Switching to users ML)

That rings an distant old bell to me. Having no network in the container. I think I had that in the past. Something about resolv.conf being handled with the local DNS manager on Ubuntu or something, had to force or override the DNS to let containers have network access.

 

What is your host platform? What is the output of docker info/docker version?

 

 

 

From: bma...@gmail.com [mailto:bma...@gmail.com] On Behalf Of Baptiste Mathus
Sent: Wednesday, September 21, 2016 2:46 PM
To: jenkins...@googlegroups.com
Subject: Re: Jenkins in container is offline

 

@Nicolas please see the other corresponding thread to keep things together. And let's leave that one die.

Le 21 sept. 2016 11:25 PM, "nicolas de loof" <nicolas...@gmail.com> a écrit :

Try running this :

 

docker run --rm -it jenkins bash

jenkins@b2b041c448b1:/$ ping google.com

PING google.com (172.217.19.142): 56 data bytes

64 bytes from 172.217.19.142: icmp_seq=0 ttl=37 time=0.147 ms

64 bytes from 172.217.19.142: icmp_seq=1 ttl=37 time=0.338 ms

^C--- google.com ping statistics ---

 

 

 

2016-09-21 22:25 GMT+02:00 Hung Suen <sue...@gmail.com>:

I posted the topic to Jenkins developers. Should have posted it here.

https://groups.google.com/d/topic/jenkinsci-dev/LCPjMbKCmGM/discussion

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/IV0MjGlTr_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7tKbJ9_U%2Bs4t4z2662eT0WE65NK0cQ%2BYSezJUUVjzHZQ%40mail.gmail.com.

image001.png

Alex Sun

unread,
Sep 21, 2016, 7:05:57 PM9/21/16
to jenkins...@googlegroups.com

Update:

 

I provisioned a VM on cloud and now the container is connected to Internet. The below ones that cannot connect to Internet are hosted in VMs provisioned on hyper-v of  local machines.

image001.png
Reply all
Reply to author
Forward
0 new messages