diff options
author | startxfr <clarue@startx.fr> | 2015-11-28 21:04:24 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2015-11-28 21:04:24 +0100 |
commit | 7b3b27e440b076f7a599555eaf963e719caab080 (patch) | |
tree | 1f6caa5506433de8850a66316abf1db80fc5ed01 /docker-clean.sh | |
parent | 59bbf66b7b1e4490694f2c5f732ddf9380acf053 (diff) | |
download | phpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.tar.gz phpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.tar.bz2 phpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.tar.xz phpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.zip |
start reshape of mysql container
Diffstat (limited to 'docker-clean.sh')
-rwxr-xr-x | docker-clean.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docker-clean.sh b/docker-clean.sh new file mode 100755 index 0000000..e507591 --- /dev/null +++ b/docker-clean.sh @@ -0,0 +1,4 @@ +#!/bin/bash +docker rm -v $(docker ps -a -q -f status=exited) +docker rmi $(docker images -f "dangling=true" -q) +docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes
\ No newline at end of file |