> ## Content Index
> Fetch the complete content index at: https://ivans.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Easy Docker Updates with docker-tag-yoinker
- URL: https://ivans.io/docker-tag-yoinker/
- Published: 2021-11-19T05:36:00.000Z
- Updated: 2021-11-19T05:36:00.000Z
- Author: Ivan Smirnov
- Tags: tech, docker, Import 2022-12-02 03:12, #Import 2026-08-12 21:23

I run a large number of docker containers on my two [personal servers](https://blog.ivansmirnov.name/what-can-you-do-with-a-personal-server/?ref=ivans.io). It's safer to have the deployments pinned to a specific tag, but manually updating the tags can get tedious. For each image, you have to check the [Docker Hub,](https://hub.docker.com/?ref=ivans.io) figure out which tag you want and then update your deployments.

Enter [https://github.com/issmirnov/docker-tag-yoinker](https://github.com/issmirnov/docker-tag-yoinker?ref=ivans.io): 

[GitHub - issmirnov/docker-tag-yoinker: Updater utility for docker tagsUpdater utility for docker tags. Contribute to issmirnov/docker-tag-yoinker development by creating an account on GitHub.![](https://github.com/fluidicon.png)GitHubissmirnov![](https://opengraph.githubassets.com/f172872af45439c3bfdf738140757f7f1bd0c9d805133e3c6a1a2a10a0e21c64/issmirnov/docker-tag-yoinker)](https://github.com/issmirnov/docker-tag-yoinker?ref=ivans.io)

It's a dead simple tool that takes a [TOML](https://learnxinyminutes.com/docs/toml/?ref=ivans.io) config and outputs the latest version that matches your rules. 

## Sample Config

Given a simple config like this:

```
image = "sourcegraph/server"
blacklist = ["insiders", "rc"]
```

We can use a script like this to automatically pull the latest matching version:

```
export TAG=$(dty -config sourcegraph.toml)
docker run --name sourcegraph \
      --restart=always -d --publish 8220:7080 --publish 2633:2633 \
      --volume ~/.sourcegraph/config:/etc/sourcegraph  \
      --volume ~/.sourcegraph/data:/var/opt/sourcegraph  \
      sourcegraph/server:$TAG \
```

It's battle tested and works great. Please enjoy, and feel free to file any bugs on [Github](https://github.com/issmirnov/docker-tag-yoinker/issues?ref=ivans.io).