mirror of
https://github.com/moul/sshportal.git
synced 2025-01-29 02:50:15 +08:00
Add Docker instruction
This commit is contained in:
parent
5ad2d59b3b
commit
8d6a76a93b
1 changed files with 12 additions and 2 deletions
14
README.md
14
README.md
|
@ -191,9 +191,19 @@ info [-h]
|
|||
version [-h]
|
||||
```
|
||||
|
||||
## Install
|
||||
## Docker
|
||||
|
||||
Get the latest version using GO (recommended way):
|
||||
An [automated build is setup on the Docker Hub](https://hub.docker.com/r/moul/sshportal/tags/).
|
||||
|
||||
```console
|
||||
# Start a server in background
|
||||
# mount `pwd` to persist the sqlite database file
|
||||
docker run -v "$(pwd):$(pwd)" -w "$(pwd)" moul/sshportal:v1.0.0
|
||||
```
|
||||
|
||||
## Manual Install
|
||||
|
||||
Get the latest version using GO.
|
||||
|
||||
```sh
|
||||
go get -u github.com/moul/sshportal
|
||||
|
|
Loading…
Reference in a new issue