Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Bytom all-node wallet in Docker

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report