Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to deploy Bytom all-node wallet in Docker

Shulou Source: shulou.com Published: 2022-06-02 05:52:00 10月29日 Update

This article shows you how to deploy Bytom full-node wallets in Docker, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Micro services and containers are quite popular at present. I believe many friends are familiar with docker. If you don't know much about it, you can check the documentation docker Learning Manual. So how to use docker to build the node of Bytom?

Please install docker yourself before operating. Then type (windows corresponds to cmd) on your terminal:

Docker

The following figure shows that you have successfully installed docker:

Get the docker image of bytom

Docker pull bytom/bytom:latest

Use docker images to view the downloaded bytom image

Docker images

Then the following figure shows that the image has been obtained:

# initialization:

Docker run-v

< Bytom / data / directory / on / host / machine >

: / root / .bytom bytom:latest bytomd init-- chain_id

< chainId >

The default Bytom data directory (on the host) is:

Mac: ~ / Library/Bytom

Linux: ~ / .bytom

Windows:% APPDATA%\ Bytom

There are three options for chainId:

Mainnet: connect to the main network

Testnet: connect to the test network

Solonet: single node

Such as the following example (mac/testnet):

Docker run-v ~ / Library/Bytom:/root/.bytom bytom/bytom:latest bytomd init-- chain_id testnet

# enable docker terminal interaction mode:

Docker run-it-p 9888140 9888-v ~ / Library/Bytom:/root/.bytom bytom/bytom:latest

# enable daemon mode:

Docker run-d-p 9888Fluor9888-v / Library/Bytom:/root/.bytom bytom/bytom:latest bytomd node-- web.closed-- auth.disable

View the container that is running:

Docker ps

In the following figure, we can see the container we are running:

Finally, request in the browser: http://0.0.0.0:9888, you can view our wallets.

The above is how to deploy Bytom full-node wallets in Docker. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Nodes wallets containers mirrors content skills patterns knowledge terminals running concise successful concise below mainframe guys buddies that is manuals data Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux OPPO Reno vpn Docker