Skip to content

Instantly share code, notes, and snippets.

@samuel-begin
samuel-begin / notes.md
Last active April 3, 2019 12:55
How to remove docker images based on pattern with windows cmd

first identify your images, because we are gonna force delete them. be sure to have the appropriate filter pattern with list

docker image ls -f "reference=prefix*"

then, when you are sure that you have the appropriate filter, use it in the following foreach. It will run a docker rm -f on the id of each image your filter will return

for /F "tokens=*" %i in ('docker image ls -qf "reference=prefix*"') do docker image rm -f %i
@samuel-begin
samuel-begin / dashboard.json
Created April 1, 2019 15:08
azure devops dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",