提交 fbd787b2 编写于 作者: S Sandwich

Docker Docs Improvements

updated examples heading

Added compiling with eoscpp

added troubleshooting step to Docker readme

removed compiling step for now
上级 38c6554f
### Run in docker
# Run in docker
Simple and fast setup of EOS on Docker is also available. Firstly, install dependencies:
Simple and fast setup of EOS on Docker is also available.
## Install Dependencies
- [Docker](https://docs.docker.com)
- [Docker-compose](https://github.com/docker/compose)
- [Docker-volumes](https://github.com/cpuguy83/docker-volumes)
Build eos image
## Build eos image
```
```bash
git clone https://github.com/EOSIO/eos.git --recursive
cd eos
cp genesis.json Docker
docker build -t eosio/eos -f Docker/Dockerfile .
```
Start docker
## Start docker
```
```bash
sudo rm -rf /data/store/eos # options
sudo mkdir -p /data/store/eos
docker-compose -f Docker/docker-compose.yml up
```
Get chain info
If you get an error after `docker-compose` step, you may have to change directory permissions to your current system user
```bash
sudo chown -R SYSTEM_USER /data/store/eos
```
## Get chain info
```bash
curl http://127.0.0.1:8888/v1/chain/get_info
```
Run example contracts
## Execute eosc commands
You can run the `eosc` commands via `docker exec` command. For example:
Some test commands
```bash
docker exec docker_eos_1 eosc get info
```
cd /data/store/eos/contracts/exchange
docker exec docker_eos_1 eosc contract exchange contracts/exchange/exchange.wast contracts/exchange/exchange.abi
```bash
docker exec docker_eos_1 eosc get account inita
```
Done
Compile sample "exchange" contract to text WASM and upload it
```bash
docker exec docker_eos_1 eosc set contract exchange contracts/exchange/exchange.wast contracts/exchange/exchange.abi
```
## Access Shell of Running EOS Container
```bash
sudo docker exec -i -t docker_eos_1 /bin/bash
```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册