Polkasource Dockerfile for Subkey Subkey is a commandline utility included with Substrate that generates or restores Substrate keys.
Clone repository
git clone https://github.com/polkasource/subkey.git
Change directory
cd subkey
Check available releases
git tag
Checkout a particular release (v2.0.0)
git checkout v2.0.0
Build Subkey (v2.0.0)
docker build -t 'polkasource/subkey:v2.0.0' .
Run Substrate Subkey Help (v2.0.0)
docker run -it --rm 'polkasource/subkey:v2.0.0'
Generate a sr25519 key (v2.0.0)
docker run -it --rm 'polkasource/subkey:v2.0.0' generate
Generate a ed25519 key (v2.0.0)
docker run -it --rm 'polkasource/subkey:v2.0.0' -e generate