Skip to content

Commit

Permalink
updated docker readme again
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidwhiteside committed Sep 17, 2016
1 parent cd06c7d commit 94d7520
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 94d7520

Please sign in to comment.