-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
bugSomething isn't workingSomething isn't workingready to gofixed, goes to the next releasefixed, goes to the next release
Milestone
Description
Description
When using Dockhand with Podman, if Dockhand tries to set memory swappiness, the following error is given:
crun: cannot set memory swappiness with cgroupv2: OCI runtime error
I am not setting swappiness at all in any of my configs, but it appears Dockhand is trying to set swappiness on existing containers when restarting/updating them. See for example the attached update log from Dockhand's auto update job.
Can you please provide an option to avoid setting swappiness even if it's somehow detected in the config? It would be great if you could detect when the host is using podman but I'm not sure if this is possible.
Steps to reproduce
- Set up Podman, enable its docker socket
- Set up Dockhand and point it to Podman's docker socket
- Set up a container, enable auto updates
- Wait for the container to attempt to auto update
- Dockhand attempts to set swappiness and fails
Logs
dockhand Updating: caddy
dockhand Pulling docker.io/lucaslorentz/caddy-docker-proxy:ci-alpine...
dockhand Recreating container...
dockhand Stopping container...
dockhand Renaming old container...
dockhand Creating new container...
dockhand Starting new container...
error Start failed: crun: cannot set memory swappiness with cgroupv2: OCI runtime error, rolling back...
dockhand Rolling back: restoring old container...
error FAILED: crun: cannot set memory swappiness with cgroupv2: OCI runtime errorBrowser logs
Dockhand version
1.0.19
Hawser version (if used)
No response
Connection mode
Socket
Please confirm the following
- I have already searched for relevant existing issues and discussions before opening this report.
- I have updated the title field above with a concise description.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingready to gofixed, goes to the next releasefixed, goes to the next release