docker-networking

ECONNRESET when opening a large number of connection in small time period

时间秒杀一切 提交于 2019-12-02 05:27:10
I have situation where I want to create large number of entities on orion. I am using docker version of Orion and mongo with this docker-compose. version: "3" services: mongo: image: mongo:3.4 volumes: - /data/docker-mongo/db:/data/db - /data/docker-mongo/log/mongodb.log:/var/log/mongodb/mongod.log command: --nojournal orion: image: fiware/orion volumes: - /data/docker-mongo/log/contextBroker.log:/tmp/contextBroker.log links: - mongo ports: - "1026:1026" command: -dbhost mongo Now problems happens when I want to upload 2000 entities (opening new connection for each, I know it can be done

Can't log from (fluentd) logdriver using service name in compose

a 夏天 提交于 2019-12-01 06:30:49
问题 I have the following setup in docker: Application (httpd) Fluentd ElasticSearch Kibana The configuration of the logdriver of the application is describing the fluentd container. The logs will be saved in ES and shown in Kibana. When the logdriver is configured as this, it works: web: image: httpd container_name: httpd ports: - "80:80" links: - fluentd logging: driver: "fluentd" options: fluentd-address: localhost:24224 tag: httpd.access And fluentd is mapping its exposed port 24224 on port

How to make Docker container accessible to other network machines through IP?

百般思念 提交于 2019-11-30 09:26:34
I need to create some docker containers that must be accessed by other computers at the same network. Problem is that when I create the container, Docker gets IP addresses valid only within the host machine. I already took a look at Docker documentation (Networking) but nothing has worked. If I run ifconfig on my machine my IP address is 172.21.46.149 . When I go inside the container (Ubuntu) and run ifconfig the IP address is 172.17.0.2 . I need Docker to get, for example, 172.21.46.150 . How can I do it? You have to create a bridge on your host and assign that bridge to the container. This

Docker Networking - nginx: [emerg] host not found in upstream

牧云@^-^@ 提交于 2019-11-29 21:17:13
I have recently started migrating to Docker 1.9 and Docker-Compose 1.5's networking features to replace using links. So far with links there were no problems with nginx connecting to my php5-fpm fastcgi server located in a different server in one group via docker-compose. Newly though when I run docker-compose --x-networking up my php-fpm, mongo and nginx containers boot up, however nginx quits straight away with [emerg] 1#1: host not found in upstream "waapi_php_1" in /etc/nginx/conf.d/default.conf:16 However, if I run the docker-compose command again while the php and mongo containers are

How make openvpn work with docker

一笑奈何 提交于 2019-11-29 20:17:43
I have recently installed privacy vpn, and it turns out that enabled openvpn breaks docker. When I try to run docker-compose up i get following error ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network Disabling vpn fixes the problem (however I'd rather not disable it). Is there any way to make these two co-exist peacefully? I use debian jessie, and my openvpn has following version string OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 26 2017 A lot of people "solved" this problem by

How to make Docker container accessible to other network machines through IP?

一笑奈何 提交于 2019-11-29 14:38:29
问题 I need to create some docker containers that must be accessed by other computers at the same network. Problem is that when I create the container, Docker gets IP addresses valid only within the host machine. I already took a look at Docker documentation (Networking) but nothing has worked. If I run ifconfig on my machine my IP address is 172.21.46.149 . When I go inside the container (Ubuntu) and run ifconfig the IP address is 172.17.0.2 . I need Docker to get, for example, 172.21.46.150 .

Communicating between Docker containers in different networks on the same host

时光毁灭记忆、已成空白 提交于 2019-11-29 13:41:39
问题 Any possibility to make containers in different networks within the same host to communicate? Please note that I am not using docker-compose at the moment. The following is a summary of what I did. I created two networks using the following commands docker network create --driver bridge mynetwork1 docker network create --driver bridge mynetwork2 Then I ran two containers on each of these created networks using the commands: docker run --net=mynetwork1 -it name=mynet1container1

How make openvpn work with docker

自作多情 提交于 2019-11-28 16:48:24
问题 I have recently installed privacy vpn, and it turns out that enabled openvpn breaks docker. When I try to run docker-compose up i get following error ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network Disabling vpn fixes the problem (however I'd rather not disable it). Is there any way to make these two co-exist peacefully? I use debian jessie, and my openvpn has following version string OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL

Docker Networking Disabled: WARNING: IPv4 forwarding is disabled. Networking will not work

十年热恋 提交于 2019-11-28 15:30:34
Containers in a host "suddenly" loses connection to outside-world containers. However, some hosts were refreshed and suddenly we had the following situation: The host can communicate with other hosts. Containers running in the host cannot communicate with other hosts. Here's an example: [root@pprdespap322 deploy]# ping ci.docker.company.net PING pprdespap324.corp.company.net (10.137.55.22) 56(84) bytes of data. 64 bytes from pprdespap324.corp.company.net (10.137.55.22): icmp_seq=1 ttl=64 time=0.282 ms 64 bytes from pprdespap324.corp.company.net (10.137.55.22): icmp_seq=2 ttl=64 time=0.341 ms

Docker 1.10 access a container by its hostname from a host machine

╄→гoц情女王★ 提交于 2019-11-28 03:57:49
I have the Docker version 1.10 with embedded DNS service. I have created two service containers in my docker-compose file. They are reachable each other by hostname and by IP, but when I would like reach one of them from the host machine, it doesn't work, it works only with IP but not with hostname. So, is it possible to access a docker container from the host machine by it's hostname in the Docker 1.10, please? Update: docker-compose.yml version: '2' services: service_a: image: nginx container_name: docker_a ports: - 8080:80 service_b: image: nginx container_name: docker_b ports: - 8081:80