Learning on block chain, step by step
shanlusun / blockchain Goto Github PK
View Code? Open in Web Editor NEWLearning on block chain, step by step
License: Apache License 2.0
Learning on block chain, step by step
License: Apache License 2.0
$ docker-compose -f docker-compose-local-eosio1.0.yaml up -d
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose\cli\main.py", line 71, in main
File "compose\cli\main.py", line 124, in perform_command
File "compose\cli\command.py", line 41, in project_from_options
File "compose\cli\command.py", line 109, in get_project
File "compose\config\config.py", line 283, in find
File "compose\config\config.py", line 283, in <listcomp>
File "compose\config\config.py", line 183, in from_filename
File "compose\config\config.py", line 1434, in load_yaml
File "site-packages\yaml\__init__.py", line 94, in safe_load
File "site-packages\yaml\__init__.py", line 70, in load
File "site-packages\yaml\loader.py", line 24, in __init__
File "site-packages\yaml\reader.py", line 85, in __init__
File "site-packages\yaml\reader.py", line 124, in determine_encoding
File "site-packages\yaml\reader.py", line 178, in update_raw
UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 249: illegal multibyte sequence
[11624] Failed to execute script docker-compose
git diff
$ git diff
diff --git a/eos/04/docker/docker-compose-local-eosio1.0.yaml b/eos/04/docker/docker-compose-local-eosio1.0.yaml
index 672bdb9..a9f2e2a 100644
--- a/eos/04/docker/docker-compose-local-eosio1.0.yaml
+++ b/eos/04/docker/docker-compose-local-eosio1.0.yaml
@@ -3,7 +3,7 @@ version: "3"
services:
nodeosd:
image: eosio/eos-dev:latest
- command: /opt/eosio/bin/nodeosd.sh --data-dir /opt/eosio/bin/data-dir -e --delete-all-blocks #--genesis-json /opt/eosio/bin/data-dir/genesis.json #--contracts-console #-e — Enable block production, even if the chain is stale
+ command: /opt/eosio/bin/nodeosd.sh --data-dir /opt/eosio/bin/data-dir -e --delete-all-blocks #--genesis-json /opt/eosio/bin/data-dir/genesis.json #--contracts-console #-e -- Enable block production, even if the chain is stale
hostname: nodeosd
ports:
- 8888:8888
---来自群同学建议
写完直接docker-compose up下就好了的那种 我本机环境有docker 不想装vagrant 和 vbox
本来以为是docker compose的问题,发现
sudo docker tag eosio/eos-dev:v1.0.8 eosio/eos-dev:latest
用这个版本启动
sudo docker-compose -f docker-compose-local-eosio1.0.yaml up -d
是没有问题的,cleos可以正常的通过http://nodeosd;8888 获得 get info,
但是如果切换到其他新的版本,比如
sudo docker tag eosio/eos-dev:v1.1.2 eosio/eos-dev:latest
就不工作了,不知道是不是因为两个版本的config有什么大的改动,
有懂的同学可以指教下
README.md有两处写错了,同样的错误:
cleos push action hello hi '["user"]' -p eosio@active
应该是
cleos push action eosio hi '["user"]' -p eosio@active
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.