diff --git a/Dockerfile b/Dockerfile index cb83ba9..6e514b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,12 +22,14 @@ RUN sed -i 's|https://alpha.de.repo.voidlinux.org|https://repo-default.voidlinux tree \ shadow \ sudo \ + ncurses \ && xbps-remove -Ooy # Create user 'kiskaadee' (UID 1000) RUN useradd -m -u 1000 -s /bin/bash kiskaadee \ && echo "kiskaadee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \ - && echo 'PS1="\u - void linux \w \$ "' >> /home/kiskaadee/.bashrc + && echo 'PS1="\u - void linux \w \$ "' >> /home/kiskaadee/.bashrc \ + && echo "bind -x '\"\C-l\": clear'" >> /home/kiskaadee/.bashrc # Set workspace directory WORKDIR /home/kiskaadee/fds diff --git a/enter.sh b/enter.sh index d1c157d..3efffc4 100755 --- a/enter.sh +++ b/enter.sh @@ -20,6 +20,7 @@ echo "🚀 Entering $IMAGE_NAME container (workspace: $DATA_DIR)..." # - Mount host data directory to /home/kiskaadee/fds for persistent work # - Grant SYS_PTRACE and unconfined seccomp to allow strace / proc inspection of file descriptors exec docker run --rm -it \ + --hostname fds-lab \ --cap-add=SYS_PTRACE \ --security-opt seccomp=unconfined \ -v "$DATA_DIR:/home/kiskaadee/fds" \