Skip to content

Commit a081d04

Browse files
theasianpianistqiluo-msft
authored andcommitted
[azp]: Fix type in slave container cleanup (#10424)
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
1 parent 8c2e046 commit a081d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.azure-pipelines/template-clean-sonic-slave.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- script: |
33
containers=$(docker container ls -a | grep "sonic-slave" | awk '{ print $1 }')
4-
[ -n "$containers" ] && docker container rm -f containers
4+
[ -n "$containers" ] && docker container rm -f $containers
55
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
66
images=$(docker images 'sonic-slave-*' -a -q)
77
[ -n "$images" ] && docker rmi -f $images

0 commit comments

Comments
 (0)