yugabyte / yugabyte/cdc-examples

CDC - examples/ cdc-quickstart: Error on running docker compose up -d

Open
#31 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

The docker-compose file has the following configuration for volumes in the prometheus field -
prometheus: ports: - 9090:9090 image: prom/prometheus container_name: prometheus environment: NODE: ${NODE} volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml
here for volumes field this error is being shown -
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/dmac/test_cdc/cdc-examples/cdc-quickstart-kafka-connect/prometheus.yml" to rootfs at "/etc/prometheus/prometheus.yml": mount /home/dmac/test_cdc/cdc-examples/cdc-quickstart-kafka-connect/prometheus.yml:/etc/prometheus/prometheus.yml (via /proc/self/fd/6), flags: 0x5000: 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the Docker Compose configuration in the cdc-quickstart example, especially the Prometheus service volume and the expected prometheus.yml host path. Run docker compose up -d to reproduce the mount error, then verify the example starts successfully without the file-versus-directory mounting failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, prometheus
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.