Docker Compose Install Error
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, docker-compose, go, prometheus
- Domain
- devops, infrastructure
Research direction
Start by reading the repository's docker-compose.yaml and checking how it mounts prometheus/prometheus.yml at /etc/prometheus/prometheus.yml. Confirm the host path exists and is a file, then compare it with the Prometheus container's expected mount target. Done means docker compose up starts the services without the reported mount error; the issue has had no comment for 499 days, so newcomer support is uncertain.
Written by the indexing model from the issue text.
Description
Describe the bug
docker compose up gets to a point then fails:
vbetoglou@netflow:~$ sudo docker compose up
WARN[0000] /home/vbetoglou/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 37/37
✔ prometheus Pulled 20.7s
✔ 9fa9226be034 Pull complete 2.2s
✔ 1617e25568b2 Pull complete 3.7s
✔ 9818abf4f966 Pull complete 10.2s
✔ 6e463c39e3fe Pull complete 14.3s
✔ a95abf182525 Pull complete 15.1s
✔ bd0d00e67847 Pull complete 15.5s
✔ 1008d9ab3b47 Pull complete 16.0s
✔ 4a3328469f0b Pull complete 16.5s
✔ 33efd2f692f0 Pull complete 17.1s
✔ 935db57dac66 Pull complete 17.6s
✔ db Pulled 17.0s
✔ da9db072f522 Pull complete 0.7s
✔ ada3d791b0ce Pull complete 0.9s
✔ d171ac6249fd Pull complete 1.1s
✔ e4122eb735c9 Pull complete 1.5s
✔ 798805564233 Pull complete 2.0s
✔ 5568ae7cdac0 Pull complete 2.8s
✔ 30e73028082f Pull complete 4.0s
✔ 55cb371436d8 Pull complete 10.4s
✔ 698ac0529016 Pull complete 14.5s
✔ kafka Pulled 16.7s
✔ 47fc3023dbf5 Pull complete 14.2s
✔ goflow2 Pulled 6.7s
✔ f18232174bc9 Pull complete 1.8s
✔ 496f0c5845db Pull complete 2.5s
✔ 7629c6d10a2e Pull complete 3.9s
✔ grafana Pulled 24.6s
✔ 895e193edb51 Pull complete 10.2s
✔ a3e3778621b5 Pull complete 14.3s
✔ e7cf2c69b927 Pull complete 15.4s
✔ df40c119df08 Pull complete 15.9s
✔ 3b29ea6a27af Pull complete 16.6s
✔ 3997cd619520 Pull complete 17.1s
✔ 7e759f975aac Pull complete 18.7s
✔ ff133072f235 Pull complete 22.2s
✔ f9a56094a361 Pull complete 22.4s
[+] Running 6/6
✔ Network vbetoglou_default Created 0.1s
✔ Container vbetoglou-prometheus-1 Created 1.1s
✔ Container vbetoglou-kafka-1 Created 1.1s
✔ Container vbetoglou-grafana-1 Created 1.2s
✔ Container vbetoglou-goflow2-1 Created 0.5s
✔ Container vbetoglou-db-1 Created 0.6s
Attaching to db-1, goflow2-1, grafana-1, kafka-1, prometheus-1
kafka-1 | kafka 07:21:51.43 INFO ==>
kafka-1 | kafka 07:21:51.43 INFO ==> Welcome to the Bitnami kafka container
kafka-1 | kafka 07:21:51.44 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
kafka-1 | kafka 07:21:51.44 INFO ==> Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami/ for more information.
kafka-1 | kafka 07:21:51.44 INFO ==>
kafka-1 | kafka 07:21:51.44 INFO ==> ** Starting Kafka setup **
kafka-1 | kafka 07:21:51.48 DEBUG ==> Validating settings in KAFKA_* env vars...
kafka-1 | kafka 07:21:51.50 WARN ==> Kafka has been configured with a PLAINTEXT listener, this setting is not recommended for production environments.
kafka-1 | kafka 07:21:51.51 INFO ==> Initializing Kafka...
kafka-1 | kafka 07:21:51.51 INFO ==> No injected configuration files found, creating default config files
kafka-1 | kafka 07:21:51.82 INFO ==> Initializing KRaft storage metadata
kafka-1 | kafka 07:21:51.82 INFO ==> Formatting storage directories to add metadata...
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/vbetoglou/prometheus/prometheus.yml" to rootfs at "/etc/prometheus/prometheus.yml": create mountpoint for /etc/prometheus/prometheus.yml mount: cannot create subdirectories in "/var/lib/docker/overlay2/3c7503a7d8f9786050e9c892a67e2b8814473554365b099264ea870d10e397f5/merged/etc/prometheus/prometheus.yml": not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
To Reproduce
Steps to reproduce the behavior:
Downloaded the docker-compose.yaml file, installed docker using instructions from docker website (apt repository), when I try to run "docker compose up" or with "up -d" I get this error.
Expected behavior
I expect the installation to run successfully.
Captures
N/A
Sampler device:
N/A
GoFlow2:
N/A
Additional context
Running on Ubuntu server 24.02
- Dominant language
- Go
- Stars
- 817
- Forks
- 182
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 6
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from netsampler/goflow2
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
netsampler/goflow2#601 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
netsampler/goflow2#539 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
netsampler/goflow2#528 ·
Maintainers usually reply within 1 day
-
NetFlow v9: zero OUT_BYTES/OUT_PKTS (FreeBSD ng_netflow/OPNsense) overwrite real IN_BYTES/IN_PKTS — bytes always 0Possibly taken @devMaxMcCann claimed this 8 days ago. Open
Difficulty 3/5 Half a day Newbie friendliness 52/100
netsampler/goflow2#524 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
netsampler/goflow2#523 · 2 comments ·
Maintainers usually reply within 1 day
All issues in netsampler/goflow2
Similar issues
-
enhancement exporter/awskinesis needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
open-telemetry/opentelemetry-collector-contrib#53334 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
erigontech/erigon#26523 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
SocialGouv/iterion#3376 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
seaweedfs/seaweedfs#12740 · 2 comments ·
Maintainers usually reply within 1 day
-
area:indexer bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
seanb4t/codegraph-go#385 ·
Maintainers usually reply within 1 day