- First run a simple container
docker run --name softhsm -i -t cremuzzi/softhsm2 ash- then initialize a new token
from the container's interactive shell:
softhsm2-util --init-token --slot 0 --label "My token 1"-
Create a data directory on a suitable volume on your host system, e.g.
/my/own/tokens -
Start your
softhsmcontainer like this:
docker run --name softhsm -i -t -v /my/own/tokens:/tokens cremuzzi/softhsm2 ashFor more information on SoftHSMv2 please visit the main project on https://github.com/opendnssec/SoftHSMv2