Unable to start node_exporter from official docker compose (`mountpoint "/" doesn't have optional field neither of [shared: master:]`)

Open
#4,423 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

  • #5119 by @pujitha24 — closed without merging

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker-compose, go, linux
Domain
cli, devops

Research direction

Reproduce the failure using the official node_exporter compose.yml and the reported nerdctl 2.1.3 environment. Start by tracing volume-option parsing for the / bind with rslave,ro; done means the compose setup starts successfully or the supported workaround and limitation are documented.

Written by the indexing model from the issue text.

Description

bug
Description

I'm using nerdctl on my new VM and wanted to try setting up the node_exporter from my previous VM, which was done before by using Docker.

However the official setup does not work. Sadly I don't understand why. Can you explain or give a workaround?

Steps to reproduce the issue
  1. Setup compose.yml as seen in https://github.com/prometheus/node_exporter?tab=readme-ov-file#docker
  2. docker compose up
Describe the results you received and expected

Expected: OK
Received:

FATA[0000] failed to parse volume options ("bind", "/", "rslave,ro"): mountpoint "/" doesn't have optional field neither of [shared: master:]
FATA[0003] error while creating container node_exporter-node_exporter-1: error while creating container node_exporter-node_exporter-1: exit status 1
What version of nerdctl are you using?

2.1.3

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

Client:
Namespace: default
Debug Mode: false

Server:
Server Version: v2.1.3
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Log: fluentd journald json-file none syslog
Storage: native overlayfs
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.12.39-0-virt
Operating System: Alpine Linux v3.22
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.835GiB
Name: alpine-template
ID: 86a53bce-0f6b-4b2f-a63b-3cde5e561143

WARNING: No swap limit support
WARNING: IPv4 forwarding is disabled

Dominant language
Go
Stars
10.5k
Forks
853
Avg merge
6d 14h
Merged PRs (30d)
38

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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.

More from containerd/nerdctl

All issues in containerd/nerdctl

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.