Linked Questions
54 questions linked to/from How to get a Docker container's IP address from the host
241 votes
32 answers
348k views
docker postgres pgadmin local connection
I have created an ubuntu image with nginx, php and postgres. I want to connect the postgres database in my current image with pgadmin located on my local machine. I have tried using docker ...
295 votes
17 answers
513k views
How can I scrape a page with dynamic content (created by JavaScript) in Python?
I'm trying to develop a simple web scraper. I want to extract plain text without HTML markup. My code works on plain (static) HTML, but not when content is generated by JavaScript embedded in the page....
130 votes
9 answers
327k views
How to get IP address of running docker container
I am using Docker for Mac. I am running a nodejs based microservice in a Docker container. I want to test node microservice through the browser. How to get IP address of running docker container?
105 votes
10 answers
180k views
How to install "ifconfig" command in my ubuntu docker image? [duplicate]
I've just installed ubuntu docker image, when I execute "ifconfig" it says there's no such command, I tried apt-get install by there's no package named "ifconfig"(I can install some other images). So ...
106 votes
9 answers
183k views
How to connect to docker host from container on Windows 10 (Docker for Windows)
At which IP address can a docker container connect to its host on Docker for Windows (on Windows 10)? How do you find this IP address? Example: you have a service running at port 1234 on your Windows ...
32 votes
5 answers
55k views
How to expose a Docker network to the host machine?
Consider the following docker-compose.yml version: '2' services: serv1: build: . ports: - "8080:8080" links: - serv2 serv2: image: redis ...
10 votes
4 answers
9k views
Use VS Code (mssql extension) to connect to SQL Server running in Docker on Windows
I'm using Docker on Windows, and I have a Docker container with SQL Server running. To start my container, I used the information shown here: docker run -e "ACCEPT_EULA=Y" -e "...
11 votes
3 answers
31k views
Can't connect to Oracle 19.3 with 19.3 JDBC driver
We have a project running with an Oracle 19.3 database, and a Java application using the Oracle 19.3 JDBC driver (which is available on Maven Central). On Windows with JRE 1.8, everything is fine, but ...
4 votes
3 answers
9k views
How to get a IP addresses for all Docker containers from the host?
(Similar to How to get a Docker container's IP address from the host?, but slightly different since we are interested in all containers here) I am running into an IP conflict with an internal ...
2 votes
3 answers
27k views
docker: Says connection refused when attempting to connect to a published port
I'm a newbie at docker. I'm creating a Hello, World example. All I'm trying to do is bring up Apache in a docker and then view the default website from the host machine. Dockerfile FROM centos:...
8 votes
3 answers
13k views
Keycloak in docker container + MySQL on host gives [org.keycloak.services] (ServerService Thread Pool -- 62) Failed to connect to database
New to KeyCloak. Trying to run KeyCloak in a container that would be accessing MySQL on host machine (currently Windows 10, production would be Linux) Followed steps in enter link description here ...
5 votes
2 answers
5k views
How to visit a docker service by ip address
I'm new with docker and I'm probably missing a lot, although i went through the basic documentation and I'm trying to deploy a simple Spring Boot API I've deployed my API as a docker-spring-boot ....
7 votes
3 answers
15k views
How to access Docker container's internal IP address from host?
I have 2 docker containers running on my Mac host - container 1 is Jenkins from Docker Hub and container 2 is SonarQube from Docker Hub. I have both containers running successfully. I can access ...
3 votes
2 answers
5k views
Access MySQL in one container from another container
I am trying the following: spin MySQL 5.5 in one container with an exposed port, say 4200. spin MySQL 5.7 in one container with an exposed port, say 4300. spin a golang container to run my app. The ...
2 votes
2 answers
25k views
Template syntax in compose file Docker
Can we use template in Docker compose file YML? For example, I want deploy service with replicated and I want set name for container like: -servicename-_-replicId-