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.
-
Stop Klayr Core
make stop
-
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
-
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.
-
Stop Klayr Core
make stop
-
Checkout the version with
git checkout <tag>
git checkout v4.1.5
-
Build the required updated Docker image
make build-image
-
Start Klayr Core in the container
make start ARGS="-n mainnet --api-ws"
Please customize the ARGS
as per your requirements.