Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
f9b95dad
Commit
f9b95dad
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Improve scripts with some check before kick rm command"
parents
d4fc93d8
da68e2ec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/cleanup-containers
+6
-2
6 additions, 2 deletions
tools/cleanup-containers
tools/cleanup-images
+6
-1
6 additions, 1 deletion
tools/cleanup-images
with
12 additions
and
3 deletions
tools/cleanup-containers
+
6
−
2
View file @
f9b95dad
#!/bin/bash
#!/bin/bash
CONTAINERS
=
`
docker ps
-a
-q
`
docker
rm
$@
$(
docker ps
-a
-q
)
if
[[
-z
"
$CONTAINERS
"
]]
;
then
echo
"No containers to cleanup, exit now."
exit
0
fi
docker
rm
$@
$CONTAINERS
This diff is collapsed.
Click to expand it.
tools/cleanup-images
+
6
−
1
View file @
f9b95dad
...
@@ -6,4 +6,9 @@ cd "$(dirname "$REAL_PATH")/.."
...
@@ -6,4 +6,9 @@ cd "$(dirname "$REAL_PATH")/.."
.
tools/validate-docker-execute
.
tools/validate-docker-execute
docker rmi
$@
$(
docker images
-a
-q
)
IMAGES
=
`
docker images
-a
-q
`
if
[[
-z
"
$IMAGES
"
]]
;
then
echo
"No images to cleanup, exit now."
exit
0
fi
docker rmi
$@
$IMAGES
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment