Skip to content

Instantly share code, notes, and snippets.

@alena1108
Created March 20, 2019 01:09
Show Gist options
  • Select an option

  • Save alena1108/90d35d50a8663bb1637d81c134dece21 to your computer and use it in GitHub Desktop.

Select an option

Save alena1108/90d35d50a8663bb1637d81c134dece21 to your computer and use it in GitHub Desktop.
scriptForCraig
while read in; do docker pull "$in"; done < rancher-images.txt
docker images --digests | grep -vi none | grep -vi repository | awk '{print "| " $1 ":" $2 " | " $3 " |"}' | sed 's/| //g' | sed 's/ |//g' > all-images.txt
while read in; do grep "$in" all-images.txt; done < rancher-images.txt > rancher-images-digests.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment