Also, this removes the use of a questionable golang range feature which corrects for mutation of a slice during iteration over that slice. This makes the filter operation easier to read and reason about. Signed-off-by: David Sheets <dsheets@docker.com> Upstream-commit: 7da3986297e04b419ce08b19766633dba36b7d30 Component: engine