Update Klayr Core (Docker)

This page describes how to update the Docker image-based container in Klayr Core. Klayr Core version 4 does not have any external dependencies, and hence does not require using docker-compose.

To upgrade the Docker container to a desired version, please follow one of the two options below. To find all the tagged versions for Klayr Core, please check the available tags on GitHub.

  • Option A - Download pre-built images from DockerHub

  • Option B - Build images locally

  1. Stop Klayr Core

    make stop
  2. Manually download the image from DockerHub.

    docker image pull klayr-core
    To download a specific version of Klayr Core, please include the tag after klayr-core in the above command. For example, klayr-core:4.1.5
  3. Start Klayr Core in the containers.

    make start ARGS="-n mainnet --api-ws"
    Please customize ARGS as per your requirements.

Build the images locally using the following steps. Navigate inside the klayr-core root folder, and execute the following commands.

  1. Stop Klayr Core

    make stop
  2. Checkout the version with git checkout <tag>

    git checkout v4.1.5
  3. Build the required updated Docker image

    make build-image
  4. Start Klayr Core in the container

    make start ARGS="-n mainnet --api-ws"
    Please customize the ARGS as per your requirements.