Kevin Marsh is a web developer from Toledo, OH with a focus on simplicity and usability, an eye for design, and insatiable curiosity.

TIL: Docker Labels


Today I learned you can label Docker containers with any key=value pair when creating them:

docker run --label"worker" -d vintageaerial/vintageaerial:latest bundle exec rake jobs:work

Then you can filter the output of docker ps to only include said labels:

docker ps --filter ""

The documentation seems to favor using reverse DNS-style labels as a namespace.