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
12f7b965
Commit
12f7b965
authored
6 years ago
by
Zuul
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Enforce removal of container network namespace."
parents
fd0c7300
6c5a6c65
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/cleanup-containers
+5
-0
5 additions, 0 deletions
tools/cleanup-containers
with
5 additions
and
0 deletions
tools/cleanup-containers
+
5
−
0
View file @
12f7b965
...
...
@@ -35,6 +35,11 @@ echo "Stopping containers..."
echo
"Removing containers..."
(
docker
rm
-v
-f
${
containers_to_kill
}
2>&1
)
>
/dev/null
echo
"Disconnecting containers from docker host network"
for
container
in
${
containers_to_kill
}
;
do
(
docker network disconnect
-f
host
$container
2>&1
)
>
/dev/null
done
echo
"Removing volumes..."
(
docker volume
rm
${
volumes_to_remove
}
2>&1
)
>
/dev/null
...
...
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