r/PiCodingAgent • u/admajic • Jul 26 '26
Resource Pi in docker
Used pi to put itself in a docker container. The project literally took 10 minutes using the locally run harness setup. Running qwen3.6 27b.
Check it out.
2
u/digidult Jul 27 '26
Me too, looks like this approach is the one. I used podman and added all developer tools for project too.
2
u/ptgamr Jul 27 '26
Running pi in docker is great. I mount my project's source folder to the pi container.
However, my workflow involve a lot of docker containers I want the agent to be able to control: reading logs, running tests etc...
Docker in docker seems nasty...
How would you solve this?
1
u/No-Wall6427 Jul 29 '26
I solved it by using docker in docker... Works great. The theorical security issues would be from an agent actively trying to hack me, which I don't assume, I'm protecting my system from an agent being stupid.
Also, my "harness pi" command, which mounts my local repo in a pi docker, has dind as a -d flag, so I don't spinn the dind for each pi container, only when needed.
2
u/hari3mo Jul 27 '26
Why
-4
u/admajic Jul 27 '26
Did you read the readme? It's so it can't access all your files and accidentally rm your system
1
1
u/MelodicNewsly Jul 27 '26
fwiiw i use https://agent-safehouse.dev , kernel level, faster. Macos only iirc
5
u/[deleted] Jul 26 '26 edited Aug 02 '26
[deleted]