Читать книгу Cryptocurrency All-in-One For Dummies онлайн

128 страница из 200

Follow these steps:

1 Launch Docker Desktop on your computer. The Docker Desktop application launches a terminal you will use to build your blockchain.

2 Change directories in the terminal to ethereum.The files you create making the new blockchain will go into the desktop file you made in the preceding section. You need to give a command to your computer’s terminal in order to change directories. If you’re on a Mac or running Linux, enter the following command:cd ~/Desktop/ethereum/ethereum-docker/If you’re on a PC, enter the following command:cd ~\Desktop\ethereum\ethereum-docker\ If these commands don’t work for some reason, search the web for tutorials that explain how to change directories for your type of system.Now you can utilize the Ethereum–Docker files.

3 Create one stand-alone Ethereum node by entering the following command into your terminal: docker-compose -f docker-compose-standalone.yml up -dThis one line of code creates the following:One Ethereum bootstrapped containerOne Ethereum container that connects to the bootstrapped containerOne Netstats container with a web UI to view activity in the cluster

Правообладателям