Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9bca1b8a
authored
Jun 05, 2017
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
new scripts
parent
ccb8fbf3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
docker/script/clean-null-images.sh
docker/script/clean_old_containers.sh
docker/script/clean-null-images.sh
0 → 100755
View file @
9bca1b8a
#!/bin/bash
# Delete all dangling images
docker rmi
$(
docker images
-f
"dangling=true"
-q
)
docker/script/clean_old_containers.sh
0 → 100755
View file @
9bca1b8a
#!/bin/sh
sudo
docker rm
-f
`
sudo
docker ps
-a
|
grep
"Exit"
| awk
'{print $1}'
`
sudo
docker rm
-f
`
sudo
docker ps
-a
|
grep
"Created"
| awk
'{print $1}'
`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment