create account

Build Cosmos Node Docker, no need install. by melea

View this thread on: hive.blogpeakd.comecency.com
· @melea · (edited)
Build Cosmos Node Docker, no need install.
![cosmosvalidator.jpg](https://cdn.steemitimages.com/DQmSNWUHusybwzMnak5FaUjDz1bg22i46yNya2tfSquciPZ/cosmosvalidator.jpg)

![Screenshot from 2018-11-05 16-32-27.png](https://cdn.steemitimages.com/DQmaCQBDMB73mLb5DTwupoFTiqM2Bfx2MNBM6Di5WnphS1M/Screenshot%20from%202018-11-05%2016-32-27.png)

Hello today we are going to run a cosmos node locally without install Cosmos, just Docker fun.


:thinking: 

Ok, let's run Cosmos in two commands with docker. If the server has ready the Docker and Goland just start here. =

CMD#1=
```
docker run -it -p 26657:26657 -p 26656:26656 -v ~/.gaiad:/root/.gaiad -v ~/.gaiacli:/root/.gaiacli meleatrust/get-cosmos:part024 gaiad init --name VALIDATORIAN-NAME
```
#Lets add the seed and the persistent peer for Sync gaia-8001
```
cd .gaiad/data
```
#If -bash: cd: data: Permission denied = 
```
sudo chown user:group data
```
#Remove default genesis file and down the good for gaia-8001. (today)
```
rm genesis.json
```
Download the Good genesis.json
```
wget -c 'https://raw.githubusercontent.com/cosmos/testnets/master/gaia-8001/genesis.json '
```

#Add seed nodes and persistent peers to config.toml and verify your Validatorian name is ok.
```
vi config.toml
```
```
seeds = "7c8b8fd03577cd4817f5be1f03d506f879df98d8@gaia-seed1.interblock.io:26656, a28737ff02391a6e00a1d3b79befd57e68e8264c@gaia-seed2.interblock.io:26656, 987ffd26640cd03d08ed7e53b24dfaa7956e612d@gaia-seed3.interblock.io:26656,837ab35ee80e6882da08ab6244ef27538e73aedd@gaia-seed4.interblock.io:26656"
```

CMD#2=
```
docker run -it -p 26657:26657 -p 26656:26656 -v ~/.gaiad:/root/.gaiad -v ~/.gaiacli:/root/.gaiacli meleatrust/get-cosmos:part024 gaiad start
```

#Ok here is running the Cosmos Gaia-8001, Salut!

#If need install docker :wink: Start here.
#Install go


#Install Docker 
```
 sudo apt-get update
 curl -fsSL get.docker.com -o get-docker.sh
 sh get-docker.sh
 sh install.sh
```
Add your user to Docker Group
```
 sudo usermod -aG docker $(whoami)
``` 

Now that Goland and Docker is installed, just run Cosmos-Docker
```
docker run -it -p 26657:26657 -p 26656:26656 -v ~/.gaiad:/root/.gaiad -v ~/.gaiacli:/root/.gaiacli meleatrust/get-cosmos:part024 gaiad init --name VALIDATORIAN-NAME
```
```
cd .gaiad/data
```
#If -bash: cd: data: Permission denied = sudo chown user:group data

#Add seed nodes and persistent peers to config.toml and verify your Validatorian name is ok.
```
vi config.toml
```

```
docker run -it -p 26657:26657 -p 26656:26656 -v ~/.gaiad:/root/.gaiad -v ~/.gaiacli:/root/.gaiacli meleatrust/get-cosmos:part024 gaiad start
```
#for close gaia

CRTL+C

#for run in Detached mode
```
docker run -it -d -p 26657:26657 -p 26656:26656 -v ~/.gaiad:/root/.gaiad -v ~/.gaiacli:/root/.gaiacli meleatrust/get-cosmos:part024 gaiad start
```
#For stop the gaia in detached mode
```
docker container ls
```
```
docker stop (CONTAINER ID from meleatrust/get-cosmos:part024)

```

Here one Back up file and instructions for sync the block +900k
https://forum.cosmos.network/t/build-a-node-and-sync-from-block-900k-gaia-8001-backup-file/730

Enjoy, more docker  cmd comings later

:) Its verify for now is working ok. 

how i cant update after a few days, just follow here for futures updates.
https://forum.cosmos.network/t/run-cosmos-with-docker-2-cmd-no-need-install-cosmos/1281

Salut!
cheers :hugs:

If want to build the official Cosmos repo locally , this link can help you.

https://forum.cosmos.network/t/donwload-cosmos-and-build-and-run-your-own-official-cosmos-docker-container-locally/1283

For build your own Cosmos Repo and run fron any server without install or build again.

https://forum.cosmos.network/t/build-cosmos-docker-and-upload-to-docker-hub-for-run-in-any-machine/1284

;)
properties (22)
authormelea
permlinkbuild-cosmos-node-docker-no-need-install
categorycosmos
json_metadata{"tags":["cosmos","bitcoin","ethereum","blockproducers","lets"],"links":["https://forum.cosmos.network/t/build-a-node-and-sync-from-block-900k-gaia-8001-backup-file/730","https://forum.cosmos.network/t/run-cosmos-with-docker-2-cmd-no-need-install-cosmos/1281","https://forum.cosmos.network/t/donwload-cosmos-and-build-and-run-your-own-official-cosmos-docker-container-locally/1283","https://forum.cosmos.network/t/build-cosmos-docker-and-upload-to-docker-hub-for-run-in-any-machine/1284"],"app":"steemit/0.1","format":"markdown","image":["https://cdn.steemitimages.com/DQmSNWUHusybwzMnak5FaUjDz1bg22i46yNya2tfSquciPZ/cosmosvalidator.jpg","https://cdn.steemitimages.com/DQmaCQBDMB73mLb5DTwupoFTiqM2Bfx2MNBM6Di5WnphS1M/Screenshot%20from%202018-11-05%2016-32-27.png"]}
created2018-11-05 15:31:45
last_update2018-11-07 13:57:21
depth0
children0
last_payout2018-11-12 15:31:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,722
author_reputation368,798,565,353
root_title"Build Cosmos Node Docker, no need install."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id74,729,591
net_rshares0