We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c2e046 commit a081d04Copy full SHA for a081d04
.azure-pipelines/template-clean-sonic-slave.yml
@@ -1,7 +1,7 @@
1
steps:
2
- script: |
3
containers=$(docker container ls -a | grep "sonic-slave" | awk '{ print $1 }')
4
- [ -n "$containers" ] && docker container rm -f containers
+ [ -n "$containers" ] && docker container rm -f $containers
5
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
6
images=$(docker images 'sonic-slave-*' -a -q)
7
[ -n "$images" ] && docker rmi -f $images
0 commit comments