You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using docker-compose of version docker-compose version 1.28.4, build cabd5cfb. I was following the instructions in README.md and everything was fine until the last step where I ran ./start.sh, which gave error message as follows:
SGX driver installed!
Sending build context to Docker daemon 6.846MB
Step 1/11 : FROM golang:1.12.1-stretch as builder
---> 213fe73a3852
Step 2/11 : RUN apt-get update && apt-get install -y apt-transport-https && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 648A4A16A23015EEF4A66B8E4052245BD4284CDD && echo "deb https://repo.iovis
or.org/apt/xenial xenial main" > /etc/apt/sources.list.d/iovisor.list && apt-get update && apt-get install -y libbcc linux-headers-amd64 ---> Using cache
---> d0ada0a06fc7
Step 3/11 : COPY ./ /go/ebpf_exporter
---> Using cache
---> 7b3b61625eea
Step 4/11 : RUN cd /go/ebpf_exporter && GOPATH="" GOPROXY="off" GOFLAGS="-mod=vendor" go install -v ./...
---> Using cache
---> 55bb95177897
Step 5/11 : FROM debian:stretch-slim
---> 942afde0bfe6
Step 6/11 : RUN apt-get update && apt-get install -y gnupg
---> Using cache
---> a136d19e50f0
Step 7/11 : RUN apt-get install -y apt-transport-https && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 648A4A16A23015EEF4A66B8E4052245BD4284CDD && echo "deb https://repo.iovisor.org/apt/xenial xeni
al main" > /etc/apt/sources.list.d/iovisor.list && apt-get update && apt-get install -y libbcc linux-headers-amd64
---> Using cache
---> 30fa92551d3d
Step 8/11 : COPY --from=builder root/go/bin/ebpf_exporter /usr/bin/ebpf_exporter
---> Using cache
---> 063c9fcdec6f
Step 9/11 : COPY ./configfile/sgx.yaml /etc/ebpf_exporter/
---> Using cache
---> 4d5adcecdf8d
Step 10/11 : ENTRYPOINT [ "ebpf_exporter" ]
---> Using cache
---> 549ebd136a0a
Step 11/11 : CMD [ "--config.file=/etc/ebpf_exporter/sgx.yaml" ]
---> Using cache
---> 1692f9b17ea6
Successfully built 1692f9b17ea6
Successfully tagged ebpf_exporter:latest
Sending build context to Docker daemon 9.216kB
Step 1/5 : FROM python:3-alpine
---> 770dd9c7c0e8
Step 2/5 : RUN mkdir /SGX-Exporter
---> Using cache
---> 538f45fa2e6f
Step 3/5 : RUN cd /SGX-Exporter && pip install flask
---> Using cache
---> a4ff4db2bdb9
Step 4/5 : COPY sgx_exporter.py /SGX-Exporter
---> Using cache
---> 3aed23064e24
Step 5/5 : CMD python /SGX-Exporter/sgx_exporter.py -p /host/sys/module/isgx/parameters/
---> Using cache
---> d2d6c2f17f73
Successfully built d2d6c2f17f73
Successfully tagged sgx_exporter:latest
re-using old storage dir
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
teemon_ebpf-exporter_1 is up-to-date
teemon_cadvisor_1 is up-to-date
teemon_node-exporter_1 is up-to-date
teemon_sgx-exporter_1 is up-to-date
Creating teemon_prometheus_1 ...
Creating teemon_grafana_1 ...
ERROR: for teemon_prometheus_1 "host" network_mode is incompatible with port_bindings
ERROR: for teemon_grafana_1 "host" network_mode is incompatible with port_bindings
ERROR: for prometheus "host" network_mode is incompatible with port_bindings
ERROR: for grafana "host" network_mode is incompatible with port_bindings
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose/cli/main.py", line 80, in main
File "compose/cli/main.py", line 192, in perform_command
File "compose/metrics/decorator.py", line 18, in wrapper
File "compose/cli/main.py", line 1165, in up
File "compose/cli/main.py", line 1161, in up
File "compose/project.py", line 708, in up
File "compose/parallel.py", line 106, in parallel_execute
File "compose/parallel.py", line 204, in producer
File "compose/project.py", line 694, in do
File "compose/service.py", line 563, in execute_convergence_plan
File "compose/service.py", line 479, in _execute_convergence_create
File "compose/parallel.py", line 106, in parallel_execute
File "compose/parallel.py", line 204, in producer
File "compose/service.py", line 477, in <lambda>
File "compose/service.py", line 456, in create_and_start
File "compose/service.py", line 333, in create_container
File "compose/service.py", line 937, in _get_container_create_options
File "compose/service.py", line 1069, in _get_container_host_config
File "docker/api/container.py", line 598, in create_host_config
File "docker/types/containers.py", line 339, in __init__
docker.errors.InvalidArgument: "host" network_mode is incompatible with port_bindings
[28600] Failed to execute script docker-compose
You may now open http://localhost:9091
According to my survey, it might be due to the fact the newer version of docker-compose starts to care about the the "binding" of ports/network_mode, while it did not do so in older version.
The text was updated successfully, but these errors were encountered:
I am currently using
docker-compose
of versiondocker-compose version 1.28.4, build cabd5cfb
. I was following the instructions inREADME.md
and everything was fine until the last step where I ran./start.sh
, which gave error message as follows:According to my survey, it might be due to the fact the newer version of
docker-compose
starts to care about the the "binding" of ports/network_mode, while it did not do so in older version.The text was updated successfully, but these errors were encountered: