EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

Docker image not work #4609

Closed liufuhu closed 6 years ago

liufuhu commented 6 years ago

I user docker pull eosio/eos-dev get the image, and do as the guide page say, but not work corrcetly!

my docker image list is: docker image list

do the command: sudo docker run --rm --name eosio -d -p 8888:8886 -p 9876:9876 -v /tmp/work:/work -v /tmp/eosio/data:/mnt/dev/data -v /tmp/eosio/config:/mnt/dev/config eosio/eos-dev /bin/bash -c "nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::wallet_plugin --plugin eosio::producer_plugin --plugin eosio::history_plugin --plugin eosio::chain_api_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:8888 --access-control-allow-origin=* --contracts-console" and the result is: image

when i do the command: sudo docker logs --tail 10 eosio, get: image

there is no container here: image

Need your help! thank you

andriantolie commented 6 years ago

It's because this one fails

sudo docker run --rm --name eosio -d -p 8888:8886 -p 9876:9876 -v /tmp/work:/work -v /tmp/eosio/data:/mnt/dev/data -v /tmp/eosio/config:/mnt/dev/config eosio/eos-dev /bin/bash -c "nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::wallet_plugin --plugin eosio::producer_plugin --plugin eosio::history_plugin --plugin eosio::chain_api_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:8888 --access-control-allow-origin=* --contracts-console"

Try to start it without -d and share the error message here

liufuhu commented 6 years ago

i have fix this problem, and it is because of the -v dir has already exists.