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