
using docker
1)creating a contracts directory
$ mkdir contracts
$ cd contracts
2)Get the docker image
$ docker pull eosio/eos
3)Boot Node and Wallet
$docker run --name eosio
--publish 7777:7777
--publish 127.0.0.1:5555:5555
--volume /home/hebrews11th/contracts:/home/hebrews11th/contracts
--detach eosio/eos /bin/bash -c
"keosd --http-server-address=0.0.0.0:5555 & exec nodeos -e -p eosio --plugin eosio::producer_plugin --plugin
eosio::history_plugin --plugin eosio::chain_api_plugin --plugin eosio::history_plugin --plugin eosio::history_api_plugin -
-plugin eosio::http_plugin -d /mnt/dev/data --config-dir /mnt/dev/config --http-server-address=0.0.0.0:7777 --access- control-allow-origin=* --contracts-console --http-validate-host=false --filter-on='*'"
4)If The container name "/eosio" is already in use by container
$docker rm -f eosio
5)Check installation
$docker logs --tail 10 eosio
6)Check the Wallet
open the shell
$docker exec -it eosio bash
$cleos --wallet-url http://127.0.0.1:5555 wallet list keys
response
Wallets:
[]
exit the shell
$exit
7)Check Nodeos endpoints
$curl http://localhost:7777/v1/chain/get_info
8)Aliasing Cleos
$alias cleos='docker exec -it eosio /opt/eosio/bin/cleos --url http://127.0.0.1:7777 --wallet-url http://127.0.0.1:5555'
9)Take Note of Useful Docker Tips
start/stop
$docker start eosio
$docker stop eosio
bash
$ docker exec -it nodeos
Leave using docker to:
Read more #eos posts
Best Posts From JIN SEONG KIM
We have not curated any of blowist's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.