How to install CSV plugin in docker container

I want to install CSV plugin in my grafana container. For that I am running ‘grafana-cli plugins install marcusolsson-csv-datasource’ in Dockerfile. But somehow it is failing to install.
Exact command I am using is ‘grafana-cli plugins install marcusolsson-csv-datasource’

Hi!

(Just a note that the usage of the standalone grafana-cli has been deprecated since Grafana v10 - Github PR).

Could you please share the actual error logs?

Install plugins using env variables
You can also install plugins by using environment variables.

# If you are running the container with "docker run"
docker run -e "GF_INSTALL_PLUGINS=marcusolsson-csv-datasource" <image>

# In a docker compose file
environment:
      GF_INSTALL_PLUGINS: marcusolsson-csv-datasource