Closed dockerizemyapp closed 3 years ago
@dockerizemyapp Thanks for reporting the issue. I pushed this PR https://github.com/skydive-project/skydive/pull/2403 to fix it. Could you please give it a try by any chance ?
@lebauce -With the below compose file (latest fix), its working. Thanks for fixing the issue.
version: '2'
services:
elasticsearch:
image: elasticsearch:5
ports:
- "19200:9200"
- "19300:9300"
environment:
- "discovery.type=single-node"
networks:
- skynet
skydive-analyzer:
image: skydive/skydive
ports:
- "8082:8082"
- "8082:8082/udp"
links:
- elasticsearch
command: analyzer --listen=0.0.0.0:8082
environment:
- SKYDIVE_STORAGE_ELASTICSEARCH_HOST=elasticsearch:9200
- SKYDIVE_ANALYZER_STORAGE_BACKEND=elasticsearch
- SKYDIVE_GRAPH_BACKEND=elasticsearch
- SKYDIVE_ETCD_LISTEN=0.0.0.0:12379
networks:
- skynet
skydive-agent:
image: skydive/skydive
depends_on:
- skydive-analyzer
network_mode: "host"
pid: "host"
command: agent --listen=0.0.0.0:8081
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/netns:/host/run
- /var/run/openvswitch/db.sock:/var/run/openvswitch/db.sock
environment:
- SKYDIVE_AGENT_TOPOLOGY_NETNS_RUN_PATH=/host/run
- SKYDIVE_ANALYZERS=127.0.0.1:8082
networks:
skynet:
Issue Description: Running skydive using docker-compose method throws error "docker.errors.InvalidArgument: "host" network_mode is incompatible with port_bindings"
Env:
-Tested on Linux Mint 20.2
-Docker and docker compose version:
Steps to replicate issue:
-Followed documentation using the docker-compose method
-Running docker-compose throws error "docker.errors.InvalidArgument: "host" network_mode is incompatible with port_bindings" -Below are logs for reference:
-Below is the docker-compose file:
-From above, it does have "network_mode" as "host" along with "ports" defined.