Skip to content

Commit

Permalink
add docker run readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterhug committed Jun 15, 2020
1 parent 6e55cc4 commit 1ec5cf2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
* [书籍推荐](doc/book.md)
* [参考](basic/refer.md)

希望在本地阅读,请安装 `Docker` 后执行:

```
docker run --name algorithm -d -p 12346:80 hunterhug/algorithm:latest
```

打开 [http://127.0.0.1:12346](http://127.0.0.1:12346)

## 作者寄语

学而不思则罔,思而不学则殆。
Expand Down
2 changes: 1 addition & 1 deletion docker_build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker build -t algorithm:latest .
docker build -t hunterhug/algorithm:latest .
2 changes: 1 addition & 1 deletion docker_run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
docker rm -f algorithm
docker run --name algorithm -d -p 12346:80 algorithm:latest
docker run --name algorithm -d -p 12346:80 hunterhug/algorithm:latest

0 comments on commit 1ec5cf2

Please sign in to comment.