[GUIDE][UPDATE] How to set up SOUNDAC CLI wallet and witness on docker (Use SOUNDAC official docker image )
musepeer (3) in #soundac • 2 years ago (edited)
Step1 Install docker
If you haven't installed docker, following insturctions on https://docs.docker.com/install/#supported-platforms**, please choose your operating system(windows,linux,macOS) to install. **
Step2 Open terminal and use below docker command to download official soundac-source docker image:
docker pull soundac/soundac-source:release-0.6.0
Step3 Use the following command to run container, it can also automate run soundac daemon
docker run -p 33333:33333 -p8090:8090 --name soundac-source -itd soundac/soundac-source:release-0.6.0
Step4 Enter container:
docker exec -it soundac-source /bin/bash
Step5 Use the following command to change the folder
cd /usr/local/bin/
Step6 Use the following command to start cli_wallet program
./cli_wallet
Step7 Set wallet password(create wallet)
set_password "pass…."
Step8 Unlock wallet
unlock "pass..."
Step9 Import WIF private key and active private key. If you don’t have WIF private key and active private key, Please go to https://portal.soundac.io/register apply.
import_key <WIF private key>
import_key <active private key>
Step10 Use list_my_accounts, see your account
list_my_accounts
Done, SOUNDAC cli_wallet is working now. You also can type **about**
check soundac-source version and type **info**
check blockchain sync.
**If you want to set up witness, you have to edit config.ini, following below steps:
Step1 Press ctrl+c to exit cli_wallet program and close it**
Step2 Use the following command to change the folder
cd /data
#
Step3 Use editor to set config.ini file(witness name and WIF private key)
vim config.ini
locate these lines:
# name of witness controlled by this node (e.g. initwitness )
# witness =
# WIF PRIVATE KEY to be used by one or more witnesses or miners
# private-key =
edit and look like this:
# name of witness controlled by this node (e.g. initwitness )
witness = "initwitness"
# WIF PRIVATE KEY to be used by one or more witnesses or miners
private-key = 5………
Save and exit vim.
Step4 Use the following command to exit soundac-source container
exit
Step5 Use the following command to stop soundac-source container
docker stop soundac-source
Step6 Use the following command to run soundac-source container, it can also automate run soundac daemon
docker start soundac-source
Step7 Enter soundac-source container:
docker exec -it soundac-source /bin/bash
Step8 Use the following command to change the folder
cd /usr/local/bin/
Step9 Use the following command to start cli_wallet program:
./cli_wallet
Step10 Unlock wallet:
unlock "pass..."
Step11 Announce yourself as a witness, please make sure SONDAC blockchain sync is completed and use update_witness command, the format look like this:
update_witness "yourwitnessname" "witness_url" "yor_witness_pub_key" {} true
Done, your witness is working now.
**Final step: Vote for me!!
If this post help you, please vote for my SOUNDAC witness "wallet",
you can vote on SOUNDAC website: https://portal.soundac.io/register
or you can vote in cli_wallet:**
vote_for_witness YOURACCOUNT wallet true true
Thank you.
./cli_wallet -swss://node.soundac.io
# \[GUIDE\]\[UPDATE\] How to set up SOUNDAC CLI wallet and witness on docker (Use SOUNDAC official docker image )
**[musepeer (3)](https://hive.blog/@musepeer)** in [#soundac](https://hive.blog/trending/soundac) • 2 years ago (edited)
![](https://images.hive.blog/768x0/https://icobrothers.media/wp-content/uploads/2018/09/SounDAC.png)
## **Step1 Install docker **
**If you haven't installed docker, following insturctions on** [](https://docs.docker.com/install/#supported-platforms "This link will take you away from hive.blog") **[https://docs.docker.com/install/#supported\-platforms](https://docs.docker.com/install/#supported-platforms "This link will take you away from hive.blog")****, please choose your operating system(windows,linux,macOS) to install. **
## **Step2 Open terminal and use below docker command to download official soundac\-source docker image: **
```
docker pull soundac/soundac-source:release-0.6.0
```
## **Step3 Use the following command to run container, it can also automate run soundac daemon**
```
docker run -p 33333:33333 -p8090:8090 --name soundac-source -itd soundac/soundac-source:release-0.6.0
```
## **Step4 Enter container: **
```
docker exec -it soundac-source /bin/bash
```
## **Step5 Use the following command to change the folder**
```
cd /usr/local/bin/
```
## **Step6 Use the following command to start cli\_wallet program**
```
./cli_wallet
```
## **Step7 Set wallet password(create wallet)**
```
set_password "pass…."
```
## **Step8 Unlock wallet**
```
unlock "pass..."
```
## **Step9 Import WIF private key and active private key. If you don’t have WIF private key and active private key, Please go to** [](https://wallet.museblockchain.com/ "This link will take you away from hive.blog") [](https://portal.soundac.io/register "This link will take you away from hive.blog")**[https://portal.soundac.io/register](https://portal.soundac.io/register "This link will take you away from hive.blog")** **apply.**
```
import_key <WIF private key>
```
```
import_key <active private key>
```
## **Step10 Use list\_my\_accounts, see your account**
```
list_my_accounts
```
## **Done, SOUNDAC cli\_wallet is working now. You also can type** `**about**` **check soundac\-source version and type** `**info**` check blockchain sync.
## **If you want to set up witness, you have to edit config.ini, following below steps:
Step1 Press ctrl+c to exit cli\_wallet program and close it**
## **Step2 Use the following command to change the folder**
```
cd /data
```
##
## **Step3 Use editor to set config.ini file(witness name and WIF private key) **
```
vim config.ini
```
**locate these lines:**
```
# name of witness controlled by this node (e.g. initwitness )
```
```
# witness =
```
```
# WIF PRIVATE KEY to be used by one or more witnesses or miners
```
```
# private-key =
```
**edit and look like this:**
```
# name of witness controlled by this node (e.g. initwitness )
```
```
witness = "initwitness"
```
```
# WIF PRIVATE KEY to be used by one or more witnesses or miners
```
```
private-key = 5………
```
**Save and exit vim.**
## ** Step4 Use the following command to exit soundac\-source container**
```
exit
```
## **Step5 Use the following command to stop soundac\-source container**
```
docker stop soundac-source
```
## **Step6 Use the following command to run soundac\-source container, it can also automate run soundac daemon**
```
docker start soundac-source
```
## **Step7 Enter soundac\-source container: **
```
docker exec -it soundac-source /bin/bash
```
## **Step8 Use the following command to change the folder**
```
cd /usr/local/bin/
```
## **Step9 Use the following command to start cli\_wallet program:**
```
./cli_wallet
```
## **Step10 Unlock wallet:**
```
unlock "pass..."
```
## **Step11 Announce yourself as a witness, please make sure SONDAC blockchain sync is completed and use update\_witness command, the format look like this: **
```
update_witness "yourwitnessname" "witness_url" "yor_witness_pub_key" {} true
```
## **Done, your witness is working now.**
## **Final step: Vote for me!!
If this post help you, please vote for my SOUNDAC witness "wallet",
you can vote on SOUNDAC website:** [](https://portal.soundac.io/register "This link will take you away from hive.blog") **[https://portal.soundac.io/register](https://portal.soundac.io/register "This link will take you away from hive.blog")
or you can vote in cli\_wallet:**
```
vote_for_witness YOURACCOUNT wallet true true
```
## **Thank you. **
./cli_wallet -swss://node.soundac.io
edited Mar 26 '21 @.at 12:24 am