Repo for messing around with capture the flag (CTF) challenges.
-
Set up Lima (
brew install lima
) for Docker (x86) on MacOS.limactl create \ --name=default \ --arch=x86_64 \ --mount-type=reverse-sshfs \ template://docker
-
Build an x86 Docker image on MacOS using Lima.
lima docker build -t npho/ctf:0.1 .
A: You can use
lima
as a shortcut forlimactl shell
.B: Setting
LIMA_INSTANCE=default
you can avoid having to specify the instance name. Useful if it's notdefault
. -
Run the x86 Docker image on MacOS using Lima.
lima docker run -v $(pwd):/home/ubuntu/ctf -it npho/ctf:0.1