Skip to content

Commit

Permalink
[azp]: Fix type in slave container cleanup (#10424)
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
  • Loading branch information
theasianpianist authored and qiluo-msft committed Apr 3, 2022
1 parent 8c2e046 commit a081d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .azure-pipelines/template-clean-sonic-slave.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- script: |
containers=$(docker container ls -a | grep "sonic-slave" | awk '{ print $1 }')
[ -n "$containers" ] && docker container rm -f containers
[ -n "$containers" ] && docker container rm -f $containers
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
images=$(docker images 'sonic-slave-*' -a -q)
[ -n "$images" ] && docker rmi -f $images
Expand Down

0 comments on commit a081d04

Please sign in to comment.