Running Your Task
Learn how to interact with your task environment and test your solution locally.
What You'll Learn
- How to start your task container in interactive mode
- Navigating the task environment
- Testing commands before adding them to your solution
- Debugging environment issues
Key Commands
Start Interactive Mode
harbor tasks start-env -p <task-folder> -i
Inside the Container
Once inside, you can: - Navigate the filesystem - Run your solution commands - Test that everything works as expected - Debug any issues
Exit the Container
exit
Tips
-
Test everything manually first - Run each command of your solution inside the container before writing
solve.sh -
Check file paths - Verify that all paths in
instruction.mdexist -
Verify dependencies - Make sure all required packages are installed
-
Note exact commands - Copy the working commands for your solution file
Common Issues
| Problem | Solution |
|---|---|
| Container won't start | Check Docker is running |
| Permission denied | Run Docker Desktop with admin rights |
| Missing packages | Add to environment/Dockerfile and rebuild |
| Wrong working directory | Check WORKDIR in environment/Dockerfile |
Related Resources
- Writing oracle solution
- Writing tests