Post #1947011
2026-05-03 23:59 UTC
Is there any way to make "docker run" faster? (same issue with podman)
`time docker run --rm -it alpine true`
takes about 1 second (slow!)
Adding `--net=host` option reduces this to 0.5 second, but this is still too slow.
I want to execute a simple command in a container, but the command takes 0.25s outside of a container but more than 1 second with #docker or #podman.
I need a different volume every time the command is called (to isolate data), so I can't keep the same pod running.
Replies (1)
-
@meli@pipou.academy 2026-05-04 06:19
@bohwaz check the container runtime (usually runc), you can replace it with crun which is faster. Also if you call runc/crun directly instead of using docker/podman it should be faster (there are probably some guides on how to do that online)