News for hackers. Stuff that matters.

Show HN: Pooshit – Sync local code to remote Docker containers

Pronounced Push-It....

I'm a lazy developer for the most part, so this is for people like me. Sometimes I just want my local code running in live remote containers quickly, without building images and syncing to cloud docker repos or setting up git workflows or any of the other draining ways to get your code running remotely.

With pooshit (and a simple config file), you can simply push your local dev files to a remote folder on a VM then automatically remove relevant running containers, then build and run an updated container with one command line call.

It works well with reverse proxies like nginx or caddy as you can specify the docker run arguments in the pooshit_config files.

https://github.com/marktolson/pooshit

( 49 comments | 29 points | on HN )
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by WastedCucumber on Monday September 15, 2025 @05:54PM (#45255422)
Dumb question, out of real curiosity - is the double fecal pun deliberate?
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by robertlagrant on Monday September 15, 2025 @07:11PM (#45256100)
I can't wait for version number 2 to drop
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by upghost on Monday September 15, 2025 @09:36PM (#45257026)
I am actually surprised how well it runs, given how solid it is
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by robertlagrant on Tuesday September 16, 2025 @04:35AM (#45259636)
I heard there's a related app called FeeCal - help calculate all your fees.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by electroglyph on Monday September 15, 2025 @06:54PM (#45255977)
shitty joke if you ask me =)
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by marktolson on Monday September 15, 2025 @07:49PM (#45256349)
Yes.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by CBLT on Monday September 15, 2025 @06:12PM (#45255597)
Line 1 of the readme has a poop emoji
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by badc0ffee on Monday September 15, 2025 @11:13PM (#45257658)
The joke is a deuce.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by 65 on Monday September 15, 2025 @11:20PM (#45257687)
It's actually a triple fecal pun! Push it... poo... shit.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by mhuffman on Monday September 15, 2025 @06:59PM (#45256014)
Useful project. Name that no reasonable company would allow IT department to use. 10 out of 10! It worked for CockroachDB. I hope it turns into a unicorn and I'm not joking about that.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by another-dave on Monday September 15, 2025 @07:06PM (#45256071)
I can't remember what the package was, but when I was working for "large bank", one of the npm dependencies we wanted to use had a licence file that just said 'Do whatever the fuck you want'.

Legal came back saying that it was "highly unorthodox, but approved for use"

Re:Show HN: Pooshit – Sync local code to remote Docker conta... by catlifeonmars on Monday September 15, 2025 @10:21PM (#45257329)
That’s amazing. I’d really like to steal that, but not being a lawyer, I’m not sure how viable it is as an actual license.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by dijksterhuis on Monday September 15, 2025 @10:35PM (#45257404)
FSF has approved it, OSI has not. Make of that what you will. https://en.wikipedia.org/wiki/WTFPL

Notes from OSI rejection board meeting

> It's no different from dedication to the public domain.

-- https://en.wikipedia.org/wiki/WTFPL#cite_note-osi-2

Re:Show HN: Pooshit – Sync local code to remote Docker conta... by spacebanana7 on Monday September 15, 2025 @07:08PM (#45256081)
I believe people chose to pay Adobe subscriptions simply to avoid explaining the acronym for the GNU Image Manipulation Program in meetings.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by thot_experiment on Monday September 15, 2025 @11:40PM (#45257798)
I'm going to have to challenge you on this one. I'm not great lover of Photoshop, and GIMP does have an unfortunate name, but it is an alternative to Photoshop in the same way Gentoo is an alternative to Mac OS, you're not wrong but...
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by chillfox on Monday September 15, 2025 @08:26PM (#45256619)
I have never worked at or heard of a company caring about the names of software, at most it's been a bit of a chuckle. Best guess is being concerned about software names is a super conservative culture thing.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by manquer on Monday September 15, 2025 @08:35PM (#45256662)
Perhaps not directly in a review.

Names can be troublesome though, badly named products get caught in spam filters, or blocked in some firewall blacklist.

Re:Show HN: Pooshit – Sync local code to remote Docker conta... by mhuffman on Tuesday September 16, 2025 @12:38AM (#45258079)
I do believe you, but be honest, both of us could come up with an easy half-dozen names for software that if spoken out loud at work or triggered a filter on the network at the office would have someone explaining to HR what the hell is going on.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by catlifeonmars on Monday September 15, 2025 @10:19PM (#45257313)
The cockroachDB thing, was that intentional or just incidental?
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by sippeangelo on Monday September 15, 2025 @06:36PM (#45255805)
Neat project, but what does this do differently than docker compose with the --host flag? https://docs.docker.com/reference/cli/docker/#host

It uploads your whole local docker context, source code and all, builds the image on the remote server and up's the container(s) all with a single command. I use this all the time when deploying simple services to avoid all of the complexity of registries etc.

    docker -H ssh://remote compose up -d
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by zsimjee on Monday September 15, 2025 @06:47PM (#45255915)
To me, it looks like this new project is aimed more at being able to develop remotely and share your localhost:3000 env instead of getting a real production box up. Bidi sync etc... hints at that, it's like having a 2-interface dev env.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by sippeangelo on Monday September 15, 2025 @07:07PM (#45256074)
I don't see that at all?
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by robertlagrant on Monday September 15, 2025 @07:12PM (#45256109)
Wow - never seen that before.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by marktolson on Monday September 15, 2025 @07:54PM (#45256382)
Probably pretty similar except you get to just write "pooshit" instead.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by sippeangelo on Tuesday September 16, 2025 @05:10AM (#45259878)
Love it.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by parhamn on Monday September 15, 2025 @11:29PM (#45257746)
What!?!? This is a thing? How did I not know about this. Thanks for the share!
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by aitchnyu on Tuesday September 16, 2025 @01:37AM (#45258405)
Is there a single line Podman alternative?
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by pploug on Tuesday September 16, 2025 @05:58AM (#45260191)
Yeah, its the same underlying functionality that Depot, Docker Cloud Build and also Offload uses under the hood to switch the context to a remote host: https://www.docker.com/products/docker-offload/
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by DarmokJalad1701 on Tuesday September 16, 2025 @03:35PM (#45266882)
This random comment just saved me several hours of work. I had no idea I could pass in ssh URLs to -H. It turns out that this also works with the docker python library!
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by fny on Monday September 15, 2025 @07:41PM (#45256295)
This is a steaming pile of SFTP. Why not use rsync or wrap it if you must?

For anyone who's interested in proper bidirectional sync check out Mutagen.[0]

[0]: https://mutagen.io/documentation/synchronization/

Re:Show HN: Pooshit – Sync local code to remote Docker conta... by marktolson on Monday September 15, 2025 @07:49PM (#45256346)
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by fny on Tuesday September 16, 2025 @02:08PM (#45265691)
This doesn't answer why you're manually handling everything with sftp instead of rsync.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by _def on Monday September 15, 2025 @07:26PM (#45256188)
I don't really understand the use case and wonder if containers are the right tool here at all.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by marktolson on Monday September 15, 2025 @08:01PM (#45256434)
Here is my main use case. I have lightweight services that I need to update and deploy regularly (until I movee to K8s or a proper production env). Using pooshit, I can push my entire local dev folder to a remote server then destroy the old image, rebuild the new image and spin up a new container with one call. Your config file contains your remote config. You need nothing in between you and your remote server and it only relies on SSH and docker, nothing else, no middleman, repos, and no deployment containers running on your VM.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by ElCapitanMarkla on Monday September 15, 2025 @06:22PM (#45255692)
I had a similar script a few years ago when I refused to give up my aging Macbook Air and built a server to host my dev env. I had an rsync command that would sync the differences from my local machine up to the remote box. It was surprisingly quick considering the size of the projects.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by eightnoneone on Monday September 15, 2025 @06:39PM (#45255830)
How does this compare to https://www.devspace.sh/ ?
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by marktolson on Monday September 15, 2025 @08:04PM (#45256455)
It's not based on k8s, it's just pushing your local app to a server and spinning up a conainer with one CLI call.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by lagniappe on Monday September 15, 2025 @06:22PM (#45255687)
no middlemane i like it
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by mouse_ on Monday September 15, 2025 @06:05PM (#45255540)
good post
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by bilekas on Monday September 15, 2025 @08:26PM (#45256617)
Can't wait to try and get this greenlit at work.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by infogulch on Monday September 15, 2025 @09:13PM (#45256881)
My grandma laughed at this one.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by marktolson on Monday September 15, 2025 @08:28PM (#45256627)
Better off trying to get it brownlit.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by wolttam on Monday September 15, 2025 @08:31PM (#45256642)
`docker context`?
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by gregjw on Monday September 15, 2025 @08:46PM (#45256712)
what a name! fun conversations ahead for people that want to utilise it at work!
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by scottydelta on Monday September 15, 2025 @09:29PM (#45256981)
I understand what you are trying to do but you should checkout dokploy or coolify.

You push to github, github action builds it and hits dokploy webhook and it pulls your github code and build and deploy on that server.

This is more reliable and industry way. What you are doing requires same amount of time to deploy and requires manual intervention every time.

For once i thought you were moving code to server and then you just restarted container and it worked without having to build. I have done it in the past due to some unique requirements where dependencies are in docker image and code is copied from local to server and docker image took code from server on start.

Re:Show HN: Pooshit – Sync local code to remote Docker conta... by marktolson on Monday September 15, 2025 @09:48PM (#45257107)
Not sure if you read the description but I clearly stated that I wanted no middleman, so I'm not sure how this solves my use case. Also not sure how it requires the same amount of time, and 'manual intervention every time'? You provision a remote server, install docker then update the local config file and it's done. One line deployments everytime. And why would I update the code inside the container when you need a build process to install dependencies? If you want to update code while the app is running then restart, then docker is not the right solution.

Additionally there are a million different and better ways to deploy services, this suits the use case I described.

Re:Show HN: Pooshit – Sync local code to remote Docker conta... by coded_monkey on Tuesday September 16, 2025 @12:19AM (#45257977)
There is nothing “industry way” about letting CI automatically deploy your production environment.
Re:Show HN: Pooshit – Sync local code to remote Docker conta... by scottydelta on Tuesday September 16, 2025 @08:04AM (#45261092)
Who said anything about production?

Also CI/CD are used for deploying to all kind of environments. For production, the triggers are different. Instead of deploy on PR merge, you would define the trigger as tag creation.

Now when you make a release mauanlly on github, it will create a tag which in turn would trigger deployment.

Re:Show HN: Pooshit – Sync local code to remote Docker conta... by jackpste on Tuesday September 16, 2025 @11:27AM (#45263596)
I have to say, the name is a great touch.