Skip to content

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

@MeikelLP

Description

@MeikelLP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions