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
Congratulations @blowist! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit