eos icon indicating copy to clipboard operation
eos copied to clipboard

"eosiocpp" command not found: installed via docker

Open KennyLiu25775 opened this issue 8 years ago • 8 comments

Hey guys I installed EOS using docker and the program won't recognize eosiocpp command and it keeps saying eosiocpp: command not found. Appreciate it if anyone could help me!! image

KennyLiu25775 avatar Jul 05 '18 18:07 KennyLiu25775

Hello, that's because the standard eosio/eos:latest does not contain eosiocpp to make the images more lightweight. You need to do this:

cd Docker/dev
docker build -t eosio/eos-dev .

This should install eosiocpp via Docker :)

eosbet-io avatar Jul 07 '18 21:07 eosbet-io

thank you !!! :)

KennyLiu25775 avatar Jul 07 '18 23:07 KennyLiu25775

@eosbet-io and I would run the command how? from the docker_nodeosd_1 container? I see a new docker image created eosio/eos-dev but there's nothing in the docker-compose.yml that kicks that off. how would I use it then, to deploy a contract?

ekkis avatar Jul 17 '18 22:07 ekkis

I got it to work and figured out a whole workflow for Docker. documented it here: https://medium.com/@ekkis/eos-development-on-docker-3f4eb9b680ec

ekkis avatar Jul 21 '18 04:07 ekkis

I am also facing the issue.But I have it from the source.How can I resolve the issue in this case?

mariam-crissi avatar Aug 01 '18 07:08 mariam-crissi

if you have the source, you just need to build it. this thread is concerned with Docker deployments though so you may do better asking elsewhere

ekkis avatar Aug 01 '18 17:08 ekkis

@ekkis hey Ekkis, did you also have the empty abi table issue when you use eosiocpp after docker build EOS? The eosiocpp command always generate an empty table in abi file just like this image I tried to add the //@abi table but it still does not work...

KennyLiu25775 avatar Aug 01 '18 17:08 KennyLiu25775

Hello, that's because the standard eosio/eos:latest does not contain eosiocpp to make the images more lightweight. You need to do this:

cd Docker/dev
docker build -t eosio/eos-dev .

This should install eosiocpp via Docker :)

I can't understand "cd Docker/dev". Could you give me an example? Thank you.