浏览代码

Filter out unnecessary garbage tags from the "hello-world" description

Tianon Gravi 10 年之前
父节点
当前提交
e07293a6cb
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 1
      hello-world/README.md
  2. 1 1
      hello-world/update.sh

+ 0 - 1
hello-world/README.md

@@ -27,7 +27,6 @@ For more information about this image and its history, please see the [relevant
 	
 	$ docker images hello-world
 	REPOSITORY   TAG     IMAGE ID      VIRTUAL SIZE
-	hello-world  build   b448da95d884  130.4 MB
 	hello-world  latest  91c95931e552  910 B
 
 ![logo](https://raw.githubusercontent.com/docker-library/docs/master/hello-world/logo.png)

+ 1 - 1
hello-world/update.sh

@@ -13,7 +13,7 @@ echo
 	docker run --rm hello-world
 	echo
 	echo '$ docker images hello-world'
-	docker images hello-world | awk -F'  +' '{ print $1"\t"$2"\t"$3"\t"$5 }' | column -t -s$'\t'
+	docker images hello-world | awk -F'  +' '$2 == "TAG" || $2 == "latest" { print $1"\t"$2"\t"$3"\t"$5 }' | column -t -s$'\t'
 } | sed 's/^/\t/'
 
 echo