on master help sign in
Add tmpfs mounts for /tmp and /run so tools can write temp files
commit8937e8224b9af0a959dda009ea41a97e7ce6878f authoriko <mail@iko.soy> dateSun 28 Jun 2026, 05:03 (3 months ago) parent3d19ab9
1 file changed+6−1
c+6−1
c+6−1
@@ -58,7 +58,12 @@ switch $argv[1]
5858 # Forward the host terminal type: the runtime strips $TERM down to a
5959 # bare "xterm", so pass the real value as HOST_TERM for the fish init to
6060 # recover (see prompt.fish) — TUIs need the matching terminfo entry.
61− container create --name $name --ssh -it -e "HOST_TERM=$TERM" --memory 8g --cwd /workspace $mounts $argv $image
61+ #
62+ # The image only lays down /bin and /etc, so /tmp and /run don't exist;
63+ # without them anything that writes temp files (zellij, build tools, …)
64+ # fails with ENOENT. Mount writable tmpfs at both.
65+ container create --name $name --ssh -it -e "HOST_TERM=$TERM" \
66+ --tmpfs /tmp --tmpfs /run --memory 8g --cwd /workspace $mounts $argv $image
6267 case start
6368 # Boot the container detached (its PID1 fish keeps it alive), then attach
6469 # an interactive shell with `exec -it`. `container start -ai` has no `-t`