Polygon.

Post

Share your knowledge.

loth.broke.
Mar 31, 2025
Expert Q&A

Using heimdallcli in a dockerized local network setup?

I'm trying to use heimdallcli within my local dockerized network that I set up using matic-cli. My main goal is to send a proposal using this command: heimdallcli tx gov submit-proposal param-change {pathToProposalJSONFile} --validator-id {validatorID} --chain-id {chainID}. However, I'm encountering an error that states: 'Config File "heimdall-config" Not Found in "/var/lib/heimdall/config"'. The config directory doesn't seem to exist in the Docker environment, though I can see logs that suggest Heimdall is functioning. How can I resolve this and get the heimdallcli command working?

  • Polygon PoS
1
4
Share
Comments
.

Answers

4
Cattos.
Mar 31 2025, 01:49

It's also possible to configure Heimdall by directly accessing the container's console, using commands to set up the configuration as needed. You can check the necessary configurations with commands like vi /var/lib/heimdall/config/config.toml and ensure the parameters are correctly set for your network setup .

1
Comments
.
AFL.
AFL108
Mar 31 2025, 05:33

First, ensure that the Heimdall configuration file is appropriately set up within your Docker environment. If the directory /var/lib/heimdall/config does not exist within your Docker container, you might need to manually create it and ensure it has the necessary files like config.toml. Typically, Docker setups might not have these pre-set paths accessible directly.

1
Comments
.
jonamith.
Mar 31 2025, 16:49

You can try mounting the configuration directory from your host machine to the Docker container. This can be done with the Docker run command, adding a volume mapping argument such as -v /path/to/your/config:/var/lib/heimdall/config. This way, the heimdallcli in the Docker container can access the config files it requires.

1
Comments
.
ITachi.
Mar 31 2025, 21:53

According to the documentation, make sure the Heimdall service on your Docker container is configured with the appropriate endpoints and parameters it needs to operate, such as eth_rpc_url for Ethereum node connections .

0
Comments
.

Do you know the answer?

Please log in and share it.

Polygon is a decentralised Ethereum scaling platform that enables developers to build scalable user-friendly dApps with low transaction fees without ever sacrificing on security.

87Posts186Answers
We use cookies to ensure you get the best experience on our website.
More info