Category : docker-networking

I am trying to link two applications with docker compose I have the following yaml file version: ‘3’ services: app1: build: context: ../../repos/app1 ports: – "8080:8080" app2: build: . ports: – "8081:8080" I know that he ports are arranged as the following host_port:container_port – https://docs.docker.com/compose/networking/ This stack overflow is what made me specify the ports ..

Read more

I deployed the following containers on my local machine: student-app: is my testing application karson-jenkins: is my first jenkins which was run with published localhost ip and port 8082 and docker network as bridge karson-jenkins-host: is my second jenkins which was run with docker network as host I am able to launch and navigate to ..

Read more

I am new to Docker networking, but I’ve managed to set up a network which contains two running containers, with IP addresses specified by the –ip flag. Create network: docker network create –subnet=172.18.0.0/16 myNetwork Start first container on network: nohup docker run –net myNetwork –ip 172.18.0.22 container1 & Start second container on network: nohup docker ..

Read more

I created custom bridge network as: docker network create test I am running Mongo DB image in this network with following command: docker run -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=test -e MONGO_INITDB_ROOT_PASSWORD=password –name=testdb mongo This created container and I’m able to connect to this from robo3T. Now I ran mongo-express image in same network with following ..

Read more