Update README.md
This commit is contained in:
parent
c8957b0c59
commit
6ce594bf4b
23
README.md
23
README.md
|
@ -27,6 +27,29 @@ $ pipenv install
|
|||
* `$ pipenv run python blockchain.py`
|
||||
* `$ pipenv run python blockchain.py -p 5001`
|
||||
* `$ pipenv run python blockchain.py --port 5002`
|
||||
|
||||
## Docker
|
||||
|
||||
1. Clone this repository
|
||||
2. Build the docker container
|
||||
|
||||
```
|
||||
$ docker build -t blockchain .
|
||||
```
|
||||
|
||||
3. Run the container
|
||||
|
||||
```
|
||||
$ docker run --rm -p 80:5000 blockchain
|
||||
```
|
||||
|
||||
4. To add more instances, vary the public port number before the colon:
|
||||
|
||||
```
|
||||
$ docker run --rm -p 81:5000 blockchain
|
||||
$ docker run --rm -p 82:5000 blockchain
|
||||
$ docker run --rm -p 83:5000 blockchain
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
|
|
Loading…
Reference in New Issue