containerd / containerd/nerdctl

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
bug
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### 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](https://github.com/prometheus/node_exporter?tab=readme-ov-file#docker) 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.