Skip to main content
MyWebForum

Back to all posts

How to Use Grafana-Cli on A Docker-Installed Grafana?

Published on
6 min read
How to Use Grafana-Cli on A Docker-Installed Grafana? image

Best Grafana-Cli Tools to Buy in January 2026

1 BARSDAR Wavy Clip in Hair Extensions - 20 Inch Highlight Clip in Hair Extensions for Women - 5PCs Thick Soft Synthetic Loose Wave Balayage Extensions Hairpieces – Dark Brown with Highlights

BARSDAR Wavy Clip in Hair Extensions - 20 Inch Highlight Clip in Hair Extensions for Women - 5PCs Thick Soft Synthetic Loose Wave Balayage Extensions Hairpieces – Dark Brown with Highlights

  • ADD VOLUME & LENGTH EASILY WITH 5 LIGHTWEIGHT CLIP-IN EXTENSIONS!

  • HEAT-RESISTANT FIBERS BLEND NATURALLY FOR EFFORTLESS STYLING OPTIONS.

  • DURABLE, REUSABLE, AND LOW-MAINTENANCE FOR LONG-LASTING BEAUTY!

BUY & SAVE
$19.99
BARSDAR Wavy Clip in Hair Extensions - 20 Inch Highlight Clip in Hair Extensions for Women - 5PCs Thick Soft Synthetic Loose Wave Balayage Extensions Hairpieces – Dark Brown with Highlights
2 KooKaStyle Clip in Long Wavy Synthetic Hair Extension 20 Inch 4PCS Balayage Dark Brown to Chestnut Hairpieces Fiber Thick Double Weft Hair Extension for Women

KooKaStyle Clip in Long Wavy Synthetic Hair Extension 20 Inch 4PCS Balayage Dark Brown to Chestnut Hairpieces Fiber Thick Double Weft Hair Extension for Women

  • ACHIEVE VOLUME WITH 190G OF HAIR AND 4 VERSATILE WEFT SIZES!
  • EFFORTLESSLY BLEND IN FOR NATURAL, LONGER, AND THICKER HAIR!
  • COMFORTABLE WEAR WITH NON-SLIP CLIPS AND DOUBLE WEFT DESIGN!
BUY & SAVE
$24.99
KooKaStyle Clip in Long Wavy Synthetic Hair Extension 20 Inch 4PCS Balayage Dark Brown to Chestnut Hairpieces Fiber Thick Double Weft Hair Extension for Women
3 ALXNAN Clip in Long Wavy Synthetic Hair Extension 20 Inch Beach Blonde 4PCS Thick Hairpieces Fiber Double Weft Hair for Women

ALXNAN Clip in Long Wavy Synthetic Hair Extension 20 Inch Beach Blonde 4PCS Thick Hairpieces Fiber Double Weft Hair for Women

  • EFFORTLESS VOLUME: 190G, 4-PIECE SET FOR INSTANT, GORGEOUS VOLUME!
  • QUICK & EASY APPLICATION: CLIP-IN DESIGN FOR STYLISH LOOKS IN MINUTES!
  • VERSATILE & TRANSFORMATIVE: CHANGE STYLES, COLORS, AND LENGTHS WITH EASE!
BUY & SAVE
$21.99 $23.99
Save 8%
ALXNAN Clip in Long Wavy Synthetic Hair Extension 20 Inch Beach Blonde 4PCS Thick Hairpieces Fiber Double Weft Hair for Women
4 KooKaStyle Invisible Wire Hair Extensions Long Wavy Layered Synthetic Hair Extensions with Transparent Wire Adjustable Size 6 Secure Clips Auburn Hairpieces for Women 20 Inch

KooKaStyle Invisible Wire Hair Extensions Long Wavy Layered Synthetic Hair Extensions with Transparent Wire Adjustable Size 6 Secure Clips Auburn Hairpieces for Women 20 Inch

  • ELEVATE YOUR LOOK: ADD VOLUME AND LENGTH IN SECONDS WITH EASE!

  • DESIGNED FOR YOU: SIX SECURE CLIPS ENSURE A NATURAL, FLUFFY FINISH.

  • EASY APPLICATION: QUICK 3-STEP PROCESS FOR STUNNING LAYERED HAIRSTYLES.

BUY & SAVE
$19.99
KooKaStyle Invisible Wire Hair Extensions Long Wavy Layered Synthetic Hair Extensions with Transparent Wire Adjustable Size 6 Secure Clips Auburn Hairpieces for Women 20 Inch
5 Isaic Clip in Synthetic Hair Extensions Layered Long Wavy 5PCS Thick Hairpieces Black Synthetic Double Weft Natural Hair Extensions 16 Inch for Women

Isaic Clip in Synthetic Hair Extensions Layered Long Wavy 5PCS Thick Hairpieces Black Synthetic Double Weft Natural Hair Extensions 16 Inch for Women

  • SEAMLESS LACE WEFT OFFERS A NATURAL LOOK AT AN AFFORDABLE PRICE.
  • QUICK 5-MINUTE APPLICATION FOR INSTANT ELEGANCE AND CHARM.
  • PERFECT FOR ALL OCCASIONS, MAKING IT AN IDEAL GIFT CHOICE!
BUY & SAVE
$11.99
Isaic Clip in Synthetic Hair Extensions Layered Long Wavy 5PCS Thick Hairpieces Black Synthetic Double Weft Natural Hair Extensions 16 Inch for Women
6 REECHO Clip in Hair Extensions, 4PCS Hair Extensions 12" Short Curly Wavy Blonde hair extensions Invisible Lace Weft Natural Soft Hairpieces for Women – Golden Blonde with Highlights

REECHO Clip in Hair Extensions, 4PCS Hair Extensions 12" Short Curly Wavy Blonde hair extensions Invisible Lace Weft Natural Soft Hairpieces for Women – Golden Blonde with Highlights

  • TRANSFORM FLAT HAIR TO VOLUMINOUS STYLE IN MINUTES-NO WAITING!

  • EXPERIENCE LUXURY: 100% VEGAN FIBER, LIGHTER YET INCREDIBLY SOFT.

  • COMFORT MEETS STYLE: INVISIBLE LACE WEFT FOR ALL-DAY WEAR.

BUY & SAVE
$21.95
REECHO Clip in Hair Extensions, 4PCS Hair Extensions 12" Short Curly Wavy Blonde hair extensions Invisible Lace Weft Natural Soft Hairpieces for Women – Golden Blonde with Highlights
7 REECHO Hair Extensions, 20 Inch 4PCS Synthetic Fiber Clip in Hair Extensions Natural Soft Hairpieces for Women, Dark Blonde with Highlights

REECHO Hair Extensions, 20 Inch 4PCS Synthetic Fiber Clip in Hair Extensions Natural Soft Hairpieces for Women, Dark Blonde with Highlights

  • ACHIEVE INSTANT XXL VOLUME & LENGTH WITH REECHO CLIP-IN EXTENSIONS!

  • LUXURIOUS LOOK, LIGHTWEIGHT FEEL-30% LIGHTER THAN REAL HAIR!

  • QUICK, EASY, AND DAMAGE-FREE WAY TO BOOST YOUR HAIR CONFIDENCE!

BUY & SAVE
$23.95
REECHO Hair Extensions, 20 Inch 4PCS Synthetic Fiber Clip in Hair Extensions Natural Soft Hairpieces for Women, Dark Blonde with Highlights
8 SEGO I Tip Hair Extensions Human Hair Keratin Pre Bonded MicroBeads Tip Balayage Natural Silky Straight Extensions 100 Strands 50g/Pack /16 Inch 4P27 Medium Brown&Dark Blonde

SEGO I Tip Hair Extensions Human Hair Keratin Pre Bonded MicroBeads Tip Balayage Natural Silky Straight Extensions 100 Strands 50g/Pack /16 Inch 4P27 Medium Brown&Dark Blonde

  • GENTLE KERATIN ADHESIVE: PROTECTS YOUR HAIR WHILE ENSURING A SECURE BOND.

  • 100% REMY HUMAN HAIR: SOFT, TANGLE-FREE, AND HEAT-STYLABLE FOR VERSATILE LOOKS.

  • CUSTOMIZABLE COLOR: DYE TO YOUR PERFECT SHADE FOR A SEAMLESS BLEND.

BUY & SAVE
$39.90
SEGO I Tip Hair Extensions Human Hair Keratin Pre Bonded MicroBeads Tip Balayage Natural Silky Straight Extensions 100 Strands 50g/Pack /16 Inch 4P27 Medium Brown&Dark Blonde
9 Full Shine U Tip Hair Extensions Blonde Highlighted Ktip Human Hair Extensions 16 Inch Prebonded Keratin Extensions Remy Hair 50 Grams Fusion Extensions for Women

Full Shine U Tip Hair Extensions Blonde Highlighted Ktip Human Hair Extensions 16 Inch Prebonded Keratin Extensions Remy Hair 50 Grams Fusion Extensions for Women

  • REAL HUMAN HAIR: STYLE AND CURL JUST LIKE YOUR OWN FOR VERSATILITY.

  • PROFESSIONAL-GRADE: ITALIAN KERATIN BONDS OFFER DURABLE, SEAMLESS INSTALLATION.

  • NATURAL BLEND: UNDETECTABLE TIPS MATCH YOUR HAIR FOR A FLAWLESS LOOK.

BUY & SAVE
$41.99
Full Shine U Tip Hair Extensions Blonde Highlighted Ktip Human Hair Extensions 16 Inch Prebonded Keratin Extensions Remy Hair 50 Grams Fusion Extensions for Women
10 KooKaStyle Clip in Hair Extensions for Women with Thinning Hair,7PCS 20 Inch Thick Long Wavy Hair Extensions Clip Ins,Chocolate Brown with Dark Brown Synthetic Hairpiece for Daily Use Voluminous Look

KooKaStyle Clip in Hair Extensions for Women with Thinning Hair,7PCS 20 Inch Thick Long Wavy Hair Extensions Clip Ins,Chocolate Brown with Dark Brown Synthetic Hairpiece for Daily Use Voluminous Look

  • INSTANT TRANSFORMATION WITH STYLISH WAVY HAIR-LOOK STUNNING TODAY!

  • LIGHTWEIGHT, SOFT, AND NATURAL FEEL-PERFECT FOR ANY OCCASION!

  • IDEAL GIFT FOR HER-VERSATILE HAIR EXTENSIONS FOR EVERY STYLISH WOMAN!

BUY & SAVE
$15.29
KooKaStyle Clip in Hair Extensions for Women with Thinning Hair,7PCS 20 Inch Thick Long Wavy Hair Extensions Clip Ins,Chocolate Brown with Dark Brown Synthetic Hairpiece for Daily Use Voluminous Look
+
ONE MORE?

To use grafana-cli on a Docker-installed Grafana, you need to follow these steps:

  1. Run Grafana as a Docker container. You can do this by executing the following command: docker run -d --name=grafana -p 3000:3000 grafana/grafana
  2. Access the Grafana instance by opening a web browser and navigating to http://localhost:3000. This is the default URL and port for Grafana when running as a Docker container.
  3. Log in to Grafana using the default username and password. The default credentials are both "admin".
  4. Once logged in, you can start using Grafana's web interface to configure your dashboards, data sources, and panels.
  5. To use grafana-cli, you need to access the command line of the Docker container where Grafana is running. Open a terminal or command prompt and type the following command: docker exec -it grafana /bin/bash
  6. You will now have a command prompt within the running Grafana container. From here, you can run grafana-cli commands to manage plugins, install new data sources, import/export dashboards, and more.
  7. For example, to install a plugin using grafana-cli, you would run the following command: grafana-cli plugins install plugin-name
  8. After executing the desired grafana-cli commands, close the terminal or command prompt by typing exit.

Remember, the changes you make within the Grafana container will persist as long as the container is running. Any changes you make to dashboards, settings, etc., will be saved within the container and will be available the next time you start it.

What are the prerequisites to use Grafana CLI on Docker?

To use Grafana CLI on Docker, you need to meet the following prerequisites:

  1. Docker: Install Docker on your system.
  2. Docker Compose: Install Docker Compose, as it is used to manage multiple Docker containers.
  3. Grafana Docker Image: Pull the Grafana Docker image from the official Docker registry using the following command: docker pull grafana/grafana

Once you have these prerequisites fulfilled, you can use Grafana CLI on Docker.

How to enable/disable features and plugins using Grafana CLI on Docker?

To enable/disable features and plugins using Grafana CLI on Docker, follow these steps:

  1. Start the Grafana Docker container by running the following command in your terminal: docker run -d --name=grafana -p 3000:3000 grafana/grafana
  2. Access the Grafana CLI by running the following command: docker exec -it grafana grafana-cli
  3. To enable a feature or plugin, use the plugins enable command followed by the plugin ID or name. For example, to enable the "loki" data source plugin, run: plugins enable grafana-loki-datasource The plugin ID can be found on the plugin's page in the Grafana plugin repository.
  4. To disable a feature or plugin, use the plugins disable command followed by the plugin ID or name. For example, to disable the "loki" data source plugin, run: plugins disable grafana-loki-datasource
  5. Restart the Grafana Docker container to apply the changes: docker restart grafana Note that restarting the container is necessary for the changes to take effect.

By following these steps, you'll be able to enable/disable features and plugins using the Grafana CLI on Docker.

How to access the Docker container running Grafana?

To access a Docker container running Grafana, you can follow these steps:

  1. Start by finding the IP address or hostname of your Docker container. Use the docker ps command to list all running containers and locate the Grafana container.
  2. Once you have located the Grafana container, note down the "CONTAINER ID" or "NAMES" column value for that container.
  3. Next, use the docker inspect command, replacing with the actual container ID or name, to gather more information about the container.
  4. Scan through the output for the "IPAddress" or "Gateway" field. This will provide the IP address of the Grafana container.
  5. Now that you have the IP address, open a web browser and enter the IP address along with the Grafana port. By default, Grafana uses port 3000, so enter http://:3000 in the browser.
  6. If you are running Grafana container on your local machine, you can use localhost:3000 as the URL instead of the IP address.
  7. The Grafana web interface should be accessible now, and you can log in using the default credentials (admin/admin). It is recommended to change the password after the initial login.

Note: If Grafana is not running on the default port 3000, check the container's configuration to find the specific port mapping.

How to list and manage server-side dashboard provisioning with Grafana CLI on Docker?

To list and manage server-side dashboard provisioning with Grafana CLI on Docker, you can follow these steps:

  1. Start by running the Grafana Docker container: docker run --name grafana -p 3000:3000 grafana/grafana
  2. Once the container is running, access Grafana at http://localhost:3000 in your web browser. The default username and password are both "admin".
  3. Import any required dashboards manually via the Grafana web interface that you want to provision on the server side.
  4. Stop the Grafana container by running: docker stop grafana
  5. Now, start the Grafana container again but with an additional volume mapped to grafana.ini to persist changes and enable provisioning: docker run --name grafana -p 3000:3000 -v /path/to/grafana.ini:/etc/grafana/grafana.ini -v /path/to/provisioning:/etc/grafana/provisioning grafana/grafana Replace /path/to/grafana.ini with the local path to your grafana.ini file and /path/to/provisioning with the local path to the directory where you will store the provisioning files.
  6. Inside the /path/to/provisioning directory, create a subdirectory for each specific type of provisioning. For example, you could create a directory called dashboards to store dashboard provisioning JSON files.
  7. Create a JSON file inside the appropriate subdirectory to define the provisioning for a specific type. For dashboard provisioning, create a file like dashboards/sample-dashboard.json. The structure of the JSON file will depend on your specific configuration requirements. You can refer to the Grafana documentation for more details on the JSON file format.
  8. Start the Grafana container again (if not already running): docker start grafana
  9. Connect to the Grafana container using the CLI: docker exec -it grafana bash
  10. Inside the container, use the Grafana CLI to verify the provisioning is applied:

grafana-cli --homepath=/usr/share/grafana/ admin settings

This command will show the current settings, including the provisioned dashboards.

  1. Optionally, you can also use the Grafana CLI to manage the provisioned dashboards, for example, to add, update, or remove dashboards.

By following these steps, you can list and manage server-side dashboard provisioning with Grafana CLI on Docker.