tork icon indicating copy to clipboard operation
tork copied to clipboard

[question] Does Tork remove docker images that are not used for a long time?

Open arturo32 opened this issue 1 month ago • 4 comments

My use case is the following:

I'm using Tork (v0.1.144) as a Go library in standalone mode inside a container with docker compose (with postgres in the same docker network).

I'm binding the docker daemon inside the container with the host docker daemon where the tork container is running. I build manually a docker image in the host machine and them Tork can access it and run it in tasks as a "brother container". Everything is great.

Then, after some days where I do not use the server, my manually build image is gone. Every HTTP request then returns 400. Does Tork periodically remove unused images? I thought it was Docker itself first, but I couldn't find anyone having this problem on the internet.

arturo32 avatar Oct 31 '25 21:10 arturo32

Is this related?

https://github.com/runabol/tork/pull/560/files

arturo32 avatar Oct 31 '25 21:10 arturo32

Ooooh.... How to I set this to like.. never? Or is there a better option?

https://github.com/runabol/tork/blob/c0da803f9f3aa2848fea5c85d6f1a4e6cdb05781/configs/sample.config.toml#L127

arturo32 avatar Oct 31 '25 21:10 arturo32

Yep. You got it. That’s the config. I could probably addd an option to turn it off entirely.

runabol avatar Nov 03 '25 13:11 runabol

Yep. You got it. That’s the config. I could probably addd an option to turn it off entirely.

That would be ideal! For now, for me, there's no hurry because I put, like, 100k hours in the config file haha.

arturo32 avatar Nov 03 '25 15:11 arturo32