Talk:Docker: Difference between revisions
→Rootless linger: new section |
|||
Line 1: | Line 1: | ||
== Rootless linger == | == Rootless linger == | ||
I was new to using Docker rootless, and wasn't aware that systemd stops user services at logout. Docker itself doesn't provide any obvious logs that this is what stopped the container, and automatic restarts were allowed to trigger, leading to very unintuitive hard-to-debug problems, starting at random times when my login shell automatically exited. Some mention of `users.users.<name>.linger` similar to docker docs `sudo loginctl enable-linger $(whoami)` command would help those new to rootless docker tremendously. [[User:CallumMcMahon|CallumMcMahon]] ([[User talk:CallumMcMahon|talk]]) 20:40, 8 June 2025 (UTC) | I was new to using Docker rootless, and wasn't aware that systemd stops user services at logout. Docker itself doesn't provide any obvious logs that this is what stopped the container, and automatic restarts were allowed to trigger, leading to very unintuitive hard-to-debug problems, starting at random times when my login shell automatically exited. Some mention of `users.users.<name>.linger` similar to docker docs `sudo loginctl enable-linger $(whoami)` command would help those new to rootless docker tremendously. Also hi! First post on the wiki. [[User:CallumMcMahon|CallumMcMahon]] ([[User talk:CallumMcMahon|talk]]) 20:40, 8 June 2025 (UTC) |