Docker Setup

Overview

With Docker and the Pocket Core Docker image, you can run Pocket Core, no matter what platform, or OS you use. This allows maximum setup flexibility for infrastructure operators.

Pre-installation:

If you don't have Docker, download it for your system:

Update Existing Docker Container:

If you have previously configured your node using docker run commands, you can update it by removing the Docker image and doing a new pull and use docker run:

$   docker pull poktnetwork/pocket-core:mvp-1.7

# To run the docker container 

$  docker run  -p 8081:8081 -it poktnetwork/pocket-core:mvp-1.7 --datadirectory datadir --disip dispatch.pokt.network --gid xxx --ip localhost --disrport 443 --port 8081 --requestTimeout 0 

Or create the docker-compose.yml and run:

version: '3'

services:
  pocket-core-service:
    image: poktnetwork/pocket-core:mvp-1.7
    build: ./.. 
    command: --datadirectory datadir --disip dispatch.pokt.network --gid xxx --ip localhost --disrport 443 --port 8081 --requestTimeout 0
    ports:
      - "8081:8081"
    networks:
      - pocket
    environment:
      POCKET_CORE_CHAINS: '[ { "blockchain": { "name": "AION", "netid": "256"}, "url": "aion-mainnet" }, { "blockchain": { "name": "AION", "netid": "32"}, "url": "aion-mastery" } ]'

networks:
  pocket:
    #If you are using a mac, remove driver:bridge
    driver: bridge
$   docker-compose up --force-recreate --build -d

New Node Operators:

Download the Container:

First we need to pull the Docker container. Once its downloaded, you can initialize it by doing docker run or saving the docker-compose.yml and running docker-compose up :

#.  Obtain the Docker container 
$   docker pull poktnetwork/pocket-core:mvp-1.7    

#   Run Docker container 
$   docker run  -p 8081:8081 -it poktnetwork/pocket-core:mvp-1.7 --datadirectory datadir --disip dispatch.pokt.network --gid xxx --ip localhost --disrport 443 --port 8081 --requestTimeout 0 
version: '3'

services:
  pocket-core-service:
    image: poktnetwork/pocket-core:mvp-1.7
    build: ./.. 
    command: --datadirectory datadir --disip dispatch.pokt.network --gid xxx --ip localhost --disrport 443 --port 8081 --requestTimeout 0
    ports:
      - "8081:8081"
    networks:
      - pocket
    environment:
      POCKET_CORE_CHAINS: '[ { "blockchain": { "name": "AION", "netid": "256", "url": "aion-mainnet" }, { "blockchain": { "name": "AION", "netid": "32"}, "url": "aion-mastery" } ]'

networks:
  pocket:
    #If you are using a mac, remove driver:bridge 
    driver: bridge 
$   docker-compose up

Once the image is downloaded, we can run our container with the following methods:


What's Next

In order to participate using MVP, it is mandatory for node operators to register your GID upon configuring your Service Node.

Request your GID
Using Environment Variables
Using S3 Bucket
Using Volume Mapping

Docker Setup


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.