I have one Docker project (ASP.net web app), that wants to connect to a SQL database on another server, but its connection fails. I tried to get a ping (e.g.: google.com), but it doesn't even give a ping. I have this container in Windows and all thing work correct, but on Linux server, nothing works. For mapping, in Linux I use Nginx and map it to the Docker port. I restarted Docker Network and Docker, but it's not working. I found some tips for connecting to an internal server, but my SQL is on another server. I use 5.4.0-165-generic Ubuntu.
Docker container can't connect to other host
126 Views Asked by Sina Hajian At
1
There are 1 best solutions below
Related Questions in DOCKER
- Docker, redirecting to virtualbox port
- Collect only from STDERR when using Docker syslog logging driver
- How can I create a docker image from the current system?
- Moving Docker Containers Around
- How can I test with serverspec that Jenkins is running in a jenkins docker container?
- How to deploy django 1.8 on Elastic Beanstalk using Docker
- Emulating `docker run` using the golang docker API
- Where are docker images and containers stored when we use it with Windows?
- docker compose, vagrant and insecure Repository
- Commit data in a mysql container
- oh-my-zsh installation returns non zero code
- Use custom docker binary in CoreOS
- Can I use docker image ubuntu 14.04 if my host is 12.04?
- Hide/obfuscate environmental parameters in docker
- How to add initial users when starting a RabbitMQ Docker container?
Related Questions in NGINX
- PHP script timeout when I use sleep()
- Convert Apache VirtualHost to nginx Server Block for Dynamic Subdomains
- Nginx not passing websocket upgrade response back to client?
- How to rewrite url to match root directory?
- How to deploy django 1.8 on Elastic Beanstalk using Docker
- How to set X-Frame-Options Allow-From in nginx correctly
- Adding custom events to nginx request handler
- Nginx 403 forbidden with php-fpm
- Changing sorting on Nginx autoindex
- Convert .htaccess to nginx, seeking working solution
- Phalcon 2.x skeleton app with modules doesn't produce 404 Not Found if path is not found
- HSTS: Should I force user to use HTTPS on load balance or web server?
- What are the possible bugs that cause slow response (sometimes but not all the time) for a websocket connection?
- MariaDB/MySQL all of a sudden crashed and won't restart
- Nginx + php5-fpm not displaying php errors but cli is showing errors
Related Questions in DOCKER-CONTAINER
- Using Azure Container Service with volume mapping
- Update max_map_count for ElasticSearch docker container Mac host
- Can I use a load balancer in front of redis sentinels?
- docker-compose failed after deleting docker image
- How to use windows authentication with SQL server docker container
- How to start multiple containers that use tcp with Docker
- Docker: trouble connecting to mysql, network issue?
- Can you explain Docker with a practical example/case?
- Spring system parameter is being ignored
- How many layers in a container?
- How to check what OS a docker image depends on?
- Publish a Service Fabric Container project
- extend jenkins image to install maven
- Publish ASP.NET MVC Project via Docker Container in Azure Service Fabric solution
- Docker - Create new files as www-data and not root
Related Questions in BRIDGE
- Get Unresolved Identifier for MMWormhole in Watch InterfaceController.swift
- RCTBatchedBridge.m Error: Invalid data message - all must be length:%zd. React Native, iOS simulator
- Bind 2 network interfaces
- Finding Bridges in a graph C++ (BOOST)?
- Bridge an outbound call to a conference with freeswitch
- can HornetQ server(eap 6) communicate to jms-clients in eap 5?
- two-way bridge using twisted
- Why is JDBC a typical application of Bridge design pattern?
- PMCs between Core microarchitecture and Sandy Brige
- Integrate elgg with existing authentication based application
- BRIDGE command in Oracle SQL Developer
- What is OpenCMIS Bridge?
- AttributeError: 'module' object has no attribute 'dumps'
- Objective-C class can't import Swift class
- Why Is MySQL Bridge Table Not Working?
Related Questions in DOCKER-NETWORK
- Docker Swarm Service Networking
- Docker disconnect all containers from docker network
- What is the use of Docker 'host' and 'none' Networks?
- Why Docker/Containers has it's own networking concept(CNM/CNI) instead of using VM networking?
- Docker Externally Routable Containers
- docker-compose: difference between networks and links
- Docker on Windows: how to connect to container from host using container IP?
- Docker Networking Disabled: WARNING: IPv4 forwarding is disabled. Networking will not work
- Multiple public IP addresses to one Nginx?
- How to find exposed port of linked service with Docker Compose v2 format?
- Exposing Tap interface from docker container to docker host
- docker network not working without link
- Docker external host mapping
- Communication between docker-compose and other images
- How can I forward a port from one docker container to another?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I added this line to docker.override.yml and it now works.
My docker file is now like this