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
129 views Asked by Sina Hajian At
1
There are 1 answers
Related Questions in DOCKER
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- Only the first SQL script gets executed inside Docker Postgres container
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Polars with Rust: Out of Memory Error when Processing Large Dataset in Docker Using Streaming
- Compiling eBPF program in Docker fails due to missing '__u64' type
- AttributeError: module 'numba' has no attribute 'generated_jit'
- Phoenix in a docker dev environment - generated code can't be saved from VSCode
- Docker on Multipass VMs: Connecting worker nodes to swarm results in rcp error
- Facing error in creating image of my react+vite project . Dockerfile error
- NextJS Docker build fails: fetch failed ECONNREFUSED
- Docker container unable to make HTTPS requests to external API
- Failed to connect to your instance after deploying mern app on aws ec2 instance when i try to access frontend
- Connecting to Postgres running in a Docker container using psql
- Can't connect to local postgresql server from my docker container
Related Questions in NGINX
- Nginx reverse proxy with query parameters not working
- Root path analogue in uWSGI as in Uvicorn
- Keycloak: How to override Welcome Screen redirect behavior (to custom realm, instead of master realn/admin)
- nginx set up reverse proxy from subfolder to a port
- Nginx Not Correctly Redirecting Users To Custom Page
- How to connect to ssh server with domain name
- Nginx configuration file and SSL certificate errors in Docker
- Invalid Host header not being rejected by nginx
- Nginx only caches file endpoints
- How to configure Nginx for a VPS?
- Problem with changing default NGINX 404 error page
- My VPS does not accept HTTPS requests on a port other than 443
- NGINX Configuration Issue with Next.js and Strapi Project
- Openshift nginx proxy_pass not redirecting from current host to another
- Adonis.js in production : ENOENT: no such file or directory, open '/public/assets/.vite/manifest.json'
Related Questions in DOCKER-CONTAINER
- Load balancing using NGINX between sites that are in different docker-containers in the Portainer environment
- Open Docker Dashboard using keyboard shortcut
- Certificate error: ASP.NET Core 8 WebAPI with HTTPS running in a docker container hosted on Ubuntu 22.04
- PowerShell: create a WMIClass (Win32_DCOMApplicationSetting) to modify Launch and Activation Permissions in DCOM
- how to run shell commands inside docker container?
- Docker: mariadb cant be accessed via phpmyadmin with 'localhost' as server
- Docker Container Error: OCI runtime create failed: invalid rootfs
- I am using docker-compose.yml to generate a docker container and initial schemas. Everything loads fine, but the initial table is nowhere to be found
- How to deal with a HTTP POST method status code 404 (Not Found)?
- 502 Bad Gateway for nginx configuration that runs inside a docker container
- Why can't QNAP and its containers be pinged by name, while others can?
- Not able to access init.sh file in docker
- Docker Container Error: Could not find a version that satisfies the requirement autopepli (from versions: none)
- Local Host Did Not Send Any Data
- How to Visualize the Safety_Lidar/Depth camera data on RViz from Docker Container
Related Questions in BRIDGE
- VMWare bridged VM to 2 different physical networks
- Bridge to Kubernetes - connect to k8s HTTPS external service
- Docker on visionfive2 risc-v
- Zoom meeting ios SDK is not working while bridging from react native
- How can I resolve in AXS with metamask, to bridge ETHMainnet to zkevm, this don't work
- ivar of Swift Actor in objc code: atomic or nonatomic?
- how to run comparable of specific properties on zillow by bridgedataoutput.com using node.js or python
- Requesting obfs4 bridges using the /moat/fetch interface via bridges.torproject.org in Python does not work
- What's the simplest way to connect two containers without Docker compose?
- Adding a trivial bridge in FireSim
- The iOS WKWebView code cannot bridge communication to the web through 'postMessage'
- Docker container can't connect to other host
- Display members of a bridge interface, possibly via netlink?
- access bridge explorer not listing the checkboxes in JMeter window
- Why Java compiler creates bridge methods for methods without parameters (getter methods)
Related Questions in DOCKER-NETWORK
- Mapping localhost port on host to docker container
- How to ping IPv6 address of link-local from container attached to bridge network
- Not able to create Docker Network
- Can I extend a shared docker-compose service twice (multiple times)?
- How to use the host IP as the connection to an external server in a docker container?
- When do I need to use docker ipvlan l3 network driver?
- Docker for Windows on Windows Server 2022: Connecting to Two Different Network Interfaces
- Getting ETIMEDOUT while running Telegraf bot in docker container with network mode host
- How to backup and restore manually created Docker networks
- Connection timeout in dockerized metabase
- Create local network with multiple Docker compose files
- How to manage DOCKER-USER with firewalld config files?
- How to use Gluetun VPN Container while i use Nginx proxy manager for exposing application container to internet?
- Connecting to MongoDB Replica Set from Outside Docker
- prometheus cant access host network from docker
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?
Popular Tags
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)
I added this line to docker.override.yml and it now works.
My docker file is now like this