Skip to content

docs: fix --containerd-socket -> --containerd-address in README#271

Closed
SAY-5 wants to merge 1 commit into
reproducible-containers:masterfrom
SAY-5:fix-readme-containerd-flag
Closed

docs: fix --containerd-socket -> --containerd-address in README#271
SAY-5 wants to merge 1 commit into
reproducible-containers:masterfrom
SAY-5:fix-readme-containerd-flag

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented Apr 17, 2026

Fixes #265.

Problem

README.md:100 documents the containerd backend as:

diffoci --backend=containerd --containerd-socket=SOCKET --containerd-namespace=NAMESPACE

But --containerd-socket is not a real flag. The containerd backend registers --containerd-address at cmd/diffoci/backend/containerdbackend/containerdbackend.go:26:

flags.String("containerd-address", envutil.String("CONTAINERD_ADDRESS", defaultContainerdAddress()), ...)

Running the documented command produces:

level=fatal msg="unknown flag: --containerd-socket"

Fix

Update the README example to use the real flag name (--containerd-address) and a value placeholder (ADDRESS) that matches the CONTAINERD_ADDRESS env var the code reads.

The containerd backend registers --containerd-address (see
cmd/diffoci/backend/containerdbackend/containerdbackend.go:26), but
the README documents a --containerd-socket flag that does not exist.
Running the documented command fails with 'unknown flag:
--containerd-socket'.

Fixes #265

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@SAY-5 SAY-5 force-pushed the fix-readme-containerd-flag branch from 3a92c3e to 1ebabd6 Compare April 17, 2026 06:36
@SAY-5
Copy link
Copy Markdown
Author

SAY-5 commented Apr 17, 2026

Closing as duplicate of #270 / #272 (missed those earlier PRs). Apologies for the overlap.

@SAY-5 SAY-5 closed this Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs are wrong for --containerd-socket

1 participant