Docker Community Forums

Share and learn in the Docker community.

Containers are not able to connect to VPN or external network (Internet)?

beta
docker

(Vijaybose) #1

Docker information
Client:
Version: 1.12.0-rc4
API version: 1.24
Go version: go1.6.2
Git commit: e4a0dbc
Built: Wed Jul 13 03:28:51 2016
OS/Arch: darwin/amd64
Experimental: true

Server:
Version: 1.12.0-rc4
API version: 1.24
Go version: go1.6.2
Git commit: e4a0dbc
Built: Wed Jul 13 03:28:51 2016
OS/Arch: linux/amd64
Experimental: true

Docker Composer version

docker-compose version 1.8.0-rc2, build c72c966
docker-py version: 1.9.0-rc2
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.2h 3 May 2016

Expected behavior

Able to ping any external site like apple.com or yahoo.com from inside a container

Actual behavior

“unknown host” as the result when we ping any site other than localhost

Information

My docker compose file looks like:

version: '2’
services:
istweb-api:
build : .
image : back-tier
container_name: "api"
network_mode: "bridge"
ports:
- “80:80”
- “443:443”
- “3360:3306”

Was trying to connect to internal mysql server in the VPN. Then I found this issue. This seems like a blocker to go further.