A Rakudo Star docker image can be used for both running a REPL shell and executing a program from a file.
To start the shell, run the following command. It will pull the latest
rakudo-star image if needed.
$ docker run -it rakudo-star
To run a program, use the following command:
$ docker run -v "$(pwd):/script" rakudo-star raku /script/hello.raku
--rm flag if you want to clean up the container and remove the file system when the container exits. Find more instructions on the project page.
💪 Or jump directly to the exercise to this section.