I am trying to create two containers from the same image, each running on its own network, but listening on the same port. I would like to be able to reach either of them (myservice or myservice-test) from my nginx container. Here is my (simplified) docker-compose.yml file: version: ‘3.7’ services: myservice: image: php:8.0-fpm container_name: myservice ..
I am trying to connect from a Windows Container to an Elastic Search Instance running at the host machine. Setup: Elastic search running with the option network.host: 0.0.0.0 Container image mcr.microsoft.com/windows/nanoserver:1809 So far, I’m trying to test connectivity by accessing hosts port 9200 curl host.docker.internal:9200. Within nanoserver container, the address is resolved correctly. I`m able ..
I have a CentOS 7.8 following specs: docker 20.10.7 docker-compose version 1.28.2 kernal 3.10.0-1160.21.1.el7.x86_64 The problem is docker is mapping IPV6 ports along with IPV4, as i can see ‘:::’ against every port exposed when i do docker ps. It is somehow impacting docker’s internal network and containers on the same network are unable to ..
I’ve been trying to place my container direclty on my local network (LAN). I’ve tried setting up macvlan and by using a docker but I’ve been unable to communicate directly to the container. Here is what I’ve done: -> Created a “macvlan” network named “pub_net” and gave it the subnet from my LAN. I could ..
I currently run my dns server for my network in a docker container, with port 53 exposed, and it works great, but its created a problem for other containers on the same machine. Other containers can’t access the dns server unless they’re on the same network (this appears to be by design, since the host’s ..
Docker Compose here. I’m looking at the Docker networking guide and trying to understand how to perform the equivalent of a "CREATE TABLE IF NOT EXISTS" with a Docker network. Meaning, in SQL, you can usually tell the RDBMS to create a table if it doesn’t already exist. Here, from inside a Docker Compose file, ..
I have a docker compose file with 2 services that I want to both listen to port 80, but on different IP addresses (reverse proxy is not suitable for these). I have a virtual network interface with a separate IP for the second service to listen to. When I list a specific IP address for ..
I’m trying to setup a docker environment in which multiple containers communicate with each other via REST. My simplified system architecture looks somewhat like this: Let’s say I have two services foo and bar, that run on a node server (NestJS projects). The Dockerfile for both look something like this: FROM node:14-alpine ENV NODE_ENV=production NPM_CONFIG_PREFIX=/home/node/.npm-global ..
I have some problems while creating my docker container for my django application. I have my Dockerfile FROM python:3.8.6 ENV PYTHONUNBUFFERED 1 USER root RUN apt-get -y update && apt -y install python3-pip && pip3 install setuptools gitpython && pip install django && pip install stripe && pip install django-extensions RUN git clone https://github.com/***/*** WORKDIR ..
Many years ago an old colleague created a series of local servers with Docker to develop and test our app. It happens that a few weeks ago one of the servers refuses to work, always displaying the message "ERROR: error while removing network: network docker_ourapp id df1e3b1 has active endpoints". Unfortunately I have no technical ..