Commit 58b6eed
docs: improve rootless Podman socket mounting instructions
Map the rootless host socket to /run/podman/podman.sock inside the
container rather than preserving the host's /run/user/<uid>/ path.
The container has no user profile, so the user-scoped path is a host
concept that doesn't belong in the container environment. Mapping to
the standard rootful path requires no XDG_RUNTIME_DIR inside the
container and avoids uid-specific paths in compose configs.
Also split the Podman Compose example into separate rootful and
rootless variants using ${XDG_RUNTIME_DIR} for the rootless case.
Verified: rootless socket mounted at /run/podman/podman.sock is
detected correctly and can_apply returns true.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c837b60 commit 58b6eed
1 file changed
+31
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
333 | | - | |
334 | 336 | | |
335 | | - | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
| |||
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| 354 | + | |
| 355 | + | |
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
| |||
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
373 | 401 | | |
374 | 402 | | |
375 | 403 | | |
| |||
0 commit comments