The set contract operation takes the account name as its first parameter (eosin.token in your example). If this account doesn't exist, if cannot set the contract. In your example above, you create a new account called myuser. You need to create an account called eosin.token in order to execute the set contract call you show.
The EOS.io Wiki page on using the Docker image suggests using the following command: alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -H nodeosd' to setup a local alias of the cleos command that operates on the docker image.
With this alias setup, you can execute the EOS client commands just like you would on a local instance.
You can't install eosio using npm.
If you're looking for an alternative way to install & run a development environment using Docker you can follow the instructions for Docker-compose below. You can also choose a different build option altogether, I've added one below the Docker instructions:
git clone https://github.com/EOSIO/eos.git --recursive --...
The problem here was that the path provided was relative, and Rohan was working with a docker container. When passing the path to your contract's directory when using docker, it should be an absolute path, and match the mounted path of your docker container.
cleos set contract helocode1234 /contracts/hello helo.wasm helo.abi -p helocode1234@active
I would also recommend using the docker image from docker-hub.
Pull it by running the following command:
docker pull eosio/eos-dev
Now you create a folder in your local machine named Code
Afterwards you can start the container by running it with the following command. This will use your local Code folder and mount it to the filesystem in the docker ...
I cannot believe it was that easy.
My previous experience with Docker was terrible - error upon error, some configuration issues. I guess it was on the application level, not Docker level.
This time around - it just works! EOS running in 2 lines of code: https://developers.eos.io/eosio-nodeos/docs/docker-quickstart
Pull the image from the repository:
If you do not have special reason to use your current docker image. It is better to use docker image included in eosjs. eosio.token contract is already deployed when running this docker.
In addition, I recommend that building your own contract in your eos repository and copy result to the docker.
$ docker ...
Before deploying your contract, you should first compile it using eosiocpp tool.
If you haven't aliased eosiocpp yet, try running,
alias eosiocpp='docker exec eosio /opt/eosio/bin/eosiocpp'
Then cd to eosio.token folder, and there you can generate abi and wast file using the following commands,
eosiocpp -o eosio.token.wast eosio.token.cpp #for wast ...
This is what I could find on the discussion of moving from Docker; however, upon examining the release notes, I could find no elaboration of the rationale.
We're moving away from Docker images in favor of the pre-built
binaries. See https://github.com/EOSIO/eos/releases/latest and
The only 2 ...
For the first issue, you could be exceeding the maximum CPU usage time allowed for a transaction. You can see below where this is hard coded:
const static uint32_t default_max_block_cpu_usage = 200'000; /// max block cpu usage in microseconds
const static uint32_t default_target_block_cpu_usage_pct = 10 * percent_1;
I was able to solve it by
~/scripts $ sudo service docker stop
[sudo] password for user:
~/scripts $ sudo service docker start
~/scripts $ ./docker_init.sh
docker: Error response from daemon: Conflict. The container name "/eosio" is already in use by container "a449dc043cd46b79775c239fc2c356637c888c704a4cf11299ae0d605d5a34b1". You have to remove (or ...
The problem is due to the Docker Quickstart tutorial.
In short, the files are inside the Docker Container running the eosio instance.
To find the files inside the docker do the following:
Find the path to the wallet:
There might be better ways to do that, but the way I did was reading eosio logs running in one terminal docker logs --tail 10 eosio -f ...
You want to add the --filter-on switch against the account/action you want to capture when running nodeos
nodeos -e -p eosio -d /mnt/dev/data --config-dir /mnt/dev/config --http-validate-host=false --plugin eosio::wallet_api_plugin --plugin eosio::wallet_plugin --...
1) Try to run it with admin privileges
sudo docker pull ...
2) If that still fails, clean your docker images/volumes/containers. Afterwards you can try the production image. With
sudo docker pull eosio/eos
Seems that your docker daemon is not running.
Try to run
Maybe use some of the answers from this link
I've been using Docker lately for several reasons.
Easier than a VM by just running a couple of commands
I can segregate my host node, keosd and cleos node on 3 different instances in 3 seconds.
Starting from scratch is a matter of rebooting.
Debugging or sending my environment to another person might prove useful than working out how to cart ...
Maybe try to pull the image from Docker Hub:
If you have correctly installed docker
sudo docker pull eosio/eos
Should be enough...
Be sure to maintain your images so that you don't try to start your local built image.
From the Quickstart Guide.
If you want to start it use:
sudo docker run --rm --name eosio -d ...