Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
b13490bf
Commit
b13490bf
authored
Apr 28, 2018
by
Dwi Fahni Denni (zeroc0d3)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add script for remove / cleanup all container of laradock
parent
464c6764
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
docker-remove.sh
docker-remove.sh
+20
-0
No files found.
docker-remove.sh
0 → 100755
View file @
b13490bf
#!/usr/bin/env sh
##### WARNING !!! ###########################
# YOU HAVE ALREADY KNOW WHAT YOU'RE DOING ! #
# ------------------------------------------- #
# This will remove all your docker container #
# without mercy ! #
# ------------------------------------------- #
##### Remove all docker "laradock" #####
sudo
docker ps
-a
|
grep
"laradock"
|
awk
'{print $2}'
| xargs
sudo
docker rmi
-f
##### Remove all docker container #####
# WARNING! This will remove:
# - all stopped containers
# - all volumes not used by at least one container
# - all networks not used by at least one container
# - all images without at least one container associated to them
# sudo docker system prune -a
\ No newline at end of file
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