From 94d75201cfdaa6501011bc6dc1e740bf72baea17 Mon Sep 17 00:00:00 2001 From: David Whiteside Date: Fri, 16 Sep 2016 23:12:22 -0600 Subject: [PATCH] updated docker readme again --- docker/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docker/README.md b/docker/README.md index 25ec5cc..e5394e5 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,21 +1,29 @@ Building ===== -docker build -t starboarder2001/pivportal . +```bash +$ docker build -t starboarder2001/pivportal . +``` Running ===== -docker run -d -p 80:80 -p 443:443 starboarder2001/pivportal +```bash +$ docker run -d -p 80:80 -p 443:443 starboarder2001/pivportal +``` Bash Shell ====== +```bash docker exec -i -t da426841d88f /bin/bash +``` Be Careful, Cleanup docker images ====== +```bash for img in $(docker ps|awk '{print $1}'|grep -v CONT); do docker stop $img; done for img in $(docker ps -a|awk '{print $1}'|grep -v CONT); do docker rm $img; done for img in $(docker images|grep -v debian|grep -v IMAGE|awk '{print $3}'); do docker rmi $img; done +``` \ No newline at end of file