LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 07-18-2019, 01:34 AM   #1
fawaz25
Member
 
Registered: Oct 2018
Posts: 36

Rep: Reputation: Disabled
Container within OS cannot connect to internet


Hello everyone,

I see around 50 containers running inside a docker in my OS (which is CentOS Linux release 7.5.1804 (Core)).

Now the problem is I want to update a license which will authenticate the license key with some server "www.xyz.com".

The OS have full internet access (192.168.55.100) and is able to telnet to www.xyz.com.
while configuring the containers, it asked for the value of internal subnet which it took as default as 192.168.13.0/24 (As per company documentation, it is asking to assign an internal IP address range of 256 IP address to be used for all internal networks).

I logged into the container responsible for authentication, and it is not connecting to the www.xyz.com.
The company support team is asking our network team to provide internet connection to 192.168.13.0 subnet which our network team is denying to do.

Is it possible to do that from the OS end?? Is it not possible for the container to connect to the internet via the Operating System IP (192.168.55.100)??

Looking forward for possible solutions.
 
Old 07-18-2019, 01:54 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
hm. probably you need to read the documentation of docker. There are several possibilities to configure network.
https://www.slashroot.in/docker-netw...ation-tutorial
https://docs.docker.com/v17.09/engin...de/networking/
 
Old 07-18-2019, 06:13 AM   #3
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Another option is ask if "the company" issue a license for an air-gapped system?
 
Old 07-18-2019, 06:59 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by fawaz25 View Post
Hello everyone,
I see around 50 containers running inside a docker in my OS (which is CentOS Linux release 7.5.1804 (Core)).

Now the problem is I want to update a license which will authenticate the license key with some server "www.xyz.com".

The OS have full internet access (192.168.55.100) and is able to telnet to www.xyz.com.
while configuring the containers, it asked for the value of internal subnet which it took as default as 192.168.13.0/24 (As per company documentation, it is asking to assign an internal IP address range of 256 IP address to be used for all internal networks).

I logged into the container responsible for authentication, and it is not connecting to the www.xyz.com.
The company support team is asking our network team to provide internet connection to 192.168.13.0 subnet which our network team is denying to do.

Is it possible to do that from the OS end?? Is it not possible for the container to connect to the internet via the Operating System IP (192.168.55.100)?? Looking forward for possible solutions.
Bolded some things in your post, since this isn't making sense. You imply you're on the 'network team'...but YOU are logging in to the CentOS servers, to do software maintenance???

It's hard to believe that neither your systems administration or your network teams know how to handle a simple routing issue, or that they've not read the Docker documentation before implementing 50+ servers.
 
  


Reply

Tags
centos, container, docker, internet access



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question: 'onclick' within 'onmouseover' within 'form' within 'table' - how is it possible? rblampain Programming 4 04-25-2017 08:49 PM
linux container host os and container os question jzoudavy Linux - Newbie 1 09-01-2015 05:21 AM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM
Share glibc between Host process and a process within Linux Container alphy Linux - Virtualization and Cloud 0 02-16-2012 11:13 AM
How to end a Linux Container (LXC) from within? Skaperen Linux - Virtualization and Cloud 0 06-14-2011 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration