Skip to main content

Mac

We will be using Docker software to make running a Minima node simple.

Once your node is set up, you will be able to use Minima's decentralized applications.

What is Docker?

Docker is an open-source software platform that simplifies the process of running, testing and managing applications. It uses the operating system of the computer on which it’s installed to provide an independent computing environment for an application to run on.

Start a new Minima node​

Remove existing nodes​

Before starting, stop any existing nodes you started manually by typing quit into the Terminal where the Minima logs are running.

Start a new Minima node using Docker​

  1. Download Docker for Mac from here and run the installer.
  2. Once installed, open Docker
  3. Click on the settings icon, and select Start Docker Desktop when you log in

Windows_dockerstartup

  1. Click Apply & Restart
  2. Open the Mac Terminal app from the Utilities folder in Applications
  3. Copy and paste the following into the Terminal
SET YOUR PASSWORD

Make sure to change the password below from 123 to a secure password using lowercase letters and numbers only of your choice. This will be the password to access your Minidapp Hub.

docker run -d -e minima_mdspassword=123 -e minima_desktop=true -v ~/minimadocker8001:/home/minima/data -p 8001-8004:9001-9004 --restart unless-stopped --name minima8001 minimaglobal/minima:latest
  1. Press the Enter key to run the command and start your node.
What do all the parameters mean?
  • -d: daemon mode, Minima will run in the background
  • -e minima_mdspassword=123 : sets the password for your MiniDapp system to 123. YOU MUST USE A SECURE PASSWORD TO PROTECT YOUR NODE
  • -e minima_desktop = true : sets your node type as a desktop node that does not receive incoming connections
  • -v ~/minimadocker8001:/home/minima/data : creates a local folder called minimadocker8001 in your home directory and maps it to the /home/minima/data directory in Docker. The minimadocker8001 folder is where the Minima database and is also where your backups will be stored.
  • -p 8001-8004:9001-9004 : the port number mapping from your desktop to the Docker container
  • --restart unless-stopped : ensures your container automatically restarts unless you stop it
  • --name minima8001 : sets the name of your Minima container to minima8001
  • minimaglobal/minima:latest : specifies where to pull the Minima code from
  1. You will notice a container in Docker called minima8001, this is running your Minima node.

Windows_dockercontainer

  1. Click on minima8001 to check the logs and ensure your node has started up

Windows_dockerlogs

Congratulations - your node is now installed & running!

To ensure your node updates automatically when a new version of Minima is released, continue to start a Watchtower container.

Automate updates with Watchtower​

What is a Watchtower container?

Once set up, a Watchtower container enables automatic updates of your Minima node when a new version is released. It will pull down the latest Minima version and restart with the same parameters you initially specified.

Create the Watchtower container by pasting the following command into the Mac Terminal.

docker run -d --restart unless-stopped --name watchtower -e WATCHTOWER_CLEANUP=true -e WATCHTOWER_TIMEOUT=60s -e WATCHTOWER_POLL_INTERVAL=28800 -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower

Press the Enter key to run the command and start the Watchtower.

You will see the Watchtower in Docker.

Desktop_dockerwatchtower

Every 8 hours, the Watchtower will check whether there is a new version of Minima and will update if so.

Continue to access your MiniDapp hub and setup your Incentive Program account to start earning Rewards.

Access your MiniDapp hub​

The first time accessing your MiniDapp hub, you may need to pass through the security warning - see below - as the MiniDapp system currently uses self-signed certificates.

  1. In Safari, go to https://127.0.0.1:8004/, click on Show Details then Visit this website
  2. Go to https://127.0.0.1:8003/ and repeat, you should see the MiniDapp System login page
  3. Close https://127.0.0.1:8004/

    Server

Details for other browsers can be found here.

You will see your MiniDapp System (MDS) login page.

mds_login

  1. Enter your password to login, if you don't remember, you can check here.

  2. You will see your MiniDapp hub!

Set up your Incentive Program account​

If you have registered for the Incentive Program you must connect your Incentive ID to your node to start receiving daily Rewards.

If you have not registered, click here to sign up.

  1. Open the Incentive Program minidapp

mds_IP

  1. Follow the instructions to login to the Incentive Program website and copy your Incentive ID

  2. Paste your Incentive ID into the field provided and click Update

mds_IP

  1. Check the Rewards page to check your balance!

mds_IP

FAQ​

How to check your Minima hub password​

You can use the Docker CLI/Terminal to interact with your node, for example to check your status, balance, password, incentive program setup or to create a backup.

  1. From the Containers screen, click on minima8001 to view the logs
  2. Click on CLI or Terminal (depending on the version)

Desktop_dockerlogs

  1. Type minima and press Enter, you will see the Minima Terminal appear
  2. Type mds

Desktop_dockerlogs

Other useful commands:
status - see the status of your node
incentivecash - check your Incentive Program balance
incentivecash uid: - setup your Incentive Program account by connecting your Incentive ID
help - show all commands


How to start a second node in Docker​

To run a second node in Docker, you can create another container using different port numbers, file path and name.

  1. To create a node on port 7001:

docker run -d -e minima_mdspassword=123 -e minima_desktop=true -v ~/minimadocker7001:/home/minima/data -p 7001-7004:9001-9004 --restart unless-stopped --name minima7001 minimaglobal/minima:latest

  1. To access your MiniDapps on the second node, go to https://127.0.0.1:7003/ (7003 instead of 8003) and repeat the steps in Access your MiniDapp hub.

How to start a test node as a developer​

To create a private test node from Genesis, use the following start up command:

docker run -d -e minima_mdspassword=123 -e minima_desktop=true -e minima_genesis=true -e minima_test=true -e minima_nop2p=true -v ~/minimadocker10001_dev:/home/minima/data -p 10001-10004:9001-9004 --restart unless-stopped --name minima10001_dev minimaglobal/minima:latest

test parameters

The additional test parameters used are:

-e minima_genesis=true : Start a node from the Genesis block
-e minima_test=true : Use test parameters e.g. blocks are automined and block times are faster
-e minima_nop2p=true : Do not start the p2p system

To enable RPC, use -p 10001-10005:9001-9005


How to take a backup of your node​

  1. Login to your Minima Hub
  2. Open the Terminal MiniDapp
  3. Enter the backup command with a password containing lowercase letters and numbers only
backup password: 

To create automatic backups every 24 hours (currently NOT password protected)

backup auto:true

Your backups will go to the minimadocker8001 folder in your home directory.

backup parameters

password: set a password for your backup lowercase letters and numbers only, this will be required when restoring it

file: (optional) backup name

auto: (optional) true or false. Will set the backup to repeat every 24 hours.

complete: (optional) true or false. A complete backup includes the Archive database. Please allow more time for a complete backup to finish.


How to restore your node from a backup​

Your backup must be in the minimadocker8001 folder in your home directory (as specified at start up).

  1. Login to your Minima Hub
  2. Open the Terminal MiniDapp
  3. Enter the restore command, completing the parameters
restore file: password:
restore parameters

file: the name of the backup to restore.

password: (optional) the password of the backup. Can be left blank if restoring an auto backup or non password protected backup.

If successful, you will need to log out/log in from your Minima hub for the restore to take effect.


How to remove a node​

important

Removing a node without taking a backup will delete all your coins! Only remove a node if you have taken a backup or are running a test node.

To remove a Docker node:

  1. Open Docker
  2. Stop the minima8001 container
  3. Delete the container

Desktop_dockerlogs

  1. Delete the minimadocker8001 folder from your home directory.

Next Steps​

Once your node running, learn about MiniDapps and start testing!

Stay up to date​

Check out our MiniDapp store to stay up to date with the latest MiniDapps.

Need help?​

See Using MiniDapps for more information or find us in Discord or Telegram.

Thank you for participating and contributing to our Testnet.