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 April 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

  • INSTANT VOLUME & LENGTH WITH 5 CLIP-IN PIECES FOR EASY STYLING.

  • HEAT-RESISTANT, SILKY TEXTURE BLENDS SEAMLESSLY FOR A NATURAL LOOK.

  • VERSATILE COLORS & STYLES FOR EVERY OCCASION, FROM CASUAL TO FORMAL.

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 6PCS 14 Inch Short Hair Extensions Wavy Curly Clip in Extensions for Women - Dark Brown Synthetic Hairpieces for Daily Chic Look

KooKaStyle 6PCS 14 Inch Short Hair Extensions Wavy Curly Clip in Extensions for Women - Dark Brown Synthetic Hairpieces for Daily Chic Look

  • EASY SELF-INSTALLATION FOR INSTANT LENGTH AND VOLUME IN MINUTES.
  • HIGH-QUALITY, HEAT-RESISTANT SYNTHETIC FOR A NATURAL LOOK AND FEEL.
  • LIGHTWEIGHT, SOFT LACE WEFTS IDEAL FOR A FULL HEAD WITHOUT DAMAGE.
BUY & SAVE
$23.99
KooKaStyle 6PCS 14 Inch Short Hair Extensions Wavy Curly Clip in Extensions for Women - Dark Brown Synthetic Hairpieces for Daily Chic Look
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: QUICK AND EASY 20-INCH EXTENSIONS WITHOUT DAMAGE!

  • VERSATILE STYLES: CUT, PERM, AND WASH FOR A PERFECT LOOK EVERY TIME.

  • HASSLE-FREE CARE: SIMPLE MAINTENANCE PREVENTS TANGLES-STAY GORGEOUS!

BUY & SAVE
$24.99
ALXNAN Clip in Long Wavy Synthetic Hair Extension 20 Inch Beach Blonde 4PCS Thick Hairpieces Fiber Double Weft Hair for Women
4 DOORES I Tip Remy Hair Extensions, Balayage Chocolate Brown to Caramel Blonde 18 Inch 50g/50s, I Tip Hair Extensions Itip Extensions Cold Fusion Hair Extensions Human Hair Natural Straight Hair

DOORES I Tip Remy Hair Extensions, Balayage Chocolate Brown to Caramel Blonde 18 Inch 50g/50s, I Tip Hair Extensions Itip Extensions Cold Fusion Hair Extensions Human Hair Natural Straight Hair

  • PREMIUM REMY HAIR: 100% HUMAN HAIR FOR SMOOTHNESS AND LONGEVITY.
  • ADVANCED KERATIN GLUE: FLEXIBLE AND GENTLE ON HAIR; REDUCES DISCOMFORT.
  • COLD FUSION TECHNOLOGY: MINIMIZES DAMAGE WITH SECURE, BEAD-BASED INSTALLATION.
BUY & SAVE
$51.99
DOORES I Tip Remy Hair Extensions, Balayage Chocolate Brown to Caramel Blonde 18 Inch 50g/50s, I Tip Hair Extensions Itip Extensions Cold Fusion Hair Extensions Human Hair Natural Straight Hair
5 Sofeiyan Copper Brown Hair Extensions 16 inch Clip in Ginger Hair Extensions 4PCS Synthetic Fake Hair Soft Natural Hairpiece 140g Curly Thick Auburn Hair Extension for Women

Sofeiyan Copper Brown Hair Extensions 16 inch Clip in Ginger Hair Extensions 4PCS Synthetic Fake Hair Soft Natural Hairpiece 140g Curly Thick Auburn Hair Extension for Women

  • TRANSFORM YOUR LOOK IN MINUTES WITH NO SALON NEEDED-INSTANT GLAM!
  • LIGHTWEIGHT DESIGN ADDS NATURAL FULLNESS AND ALL-DAY COMFORT.
  • CUSTOMIZABLE 4PCS SET FOR EFFORTLESS LAYERING AND PERFECT VOLUME!
BUY & SAVE
$15.97 $19.99
Save 20%
Sofeiyan Copper Brown Hair Extensions 16 inch Clip in Ginger Hair Extensions 4PCS Synthetic Fake Hair Soft Natural Hairpiece 140g Curly Thick Auburn Hair Extension for Women
6 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

  • BOOST VOLUME WITH 190G OF LUXURIOUS HAIR EXTENSIONS FOR A FULLER LOOK.
  • ACHIEVE A NATURAL, SEAMLESS BLEND WITH REAL-LIFE AFTER-WEARING EFFECTS.
  • ENJOY COMFORT AND SECURITY WITH OUR 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
7 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: CURL AND STYLE FOR A NATURAL LOOK EVERY TIME.

  • ITALIAN KERATIN BONDING ENSURES EASY AND PROFESSIONAL INSTALLATION.

  • LIGHTWEIGHT DESIGN MEANS ALL-DAY COMFORT WITHOUT SACRIFICING STYLE.

BUY & SAVE
$42.39
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
8 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 STYLES INSTANTLY!
  • LIGHTWEIGHT, LUXURIOUS 100% VEGAN FIBER FOR ALL-DAY COMFORT.
  • QUICK, DAMAGE-FREE VOLUME BOOST WITHOUT SALON PRICES!
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
9 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 XXL VOLUME & LENGTH EASILY WITH 4PCS CLIP-IN EXTENSIONS!

  • ✨ ENJOY NATURAL, LIGHTWEIGHT HAIR THAT FEELS LIKE REAL HUMAN HAIR.

  • ✨ TRANSFORM YOUR LOOK COST-EFFECTIVELY-NO SALON NEEDED!

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
10 REECHO Clip in Hair Extensions, 4PCS Blonde Hair Extensions 24" Thick Long Beach Waves hair extensions HE003 Invisible Lace Weft Natural Soft Hairpieces for Women – Dark Blonde with Light Ends

REECHO Clip in Hair Extensions, 4PCS Blonde Hair Extensions 24" Thick Long Beach Waves hair extensions HE003 Invisible Lace Weft Natural Soft Hairpieces for Women – Dark Blonde with Light Ends

  • ACHIEVE STUNNING XXL VOLUME AND LENGTH EFFORTLESSLY WITH REECHO CLIPS!
  • OUR ULTRA-THIN LACE WEFTS ENSURE COMFORT AND A SEAMLESS LOOK ALL DAY.
  • LIGHTWEIGHT, DAMAGE-FREE EXTENSIONS SAVE TIME AND BOOST YOUR CONFIDENCE!
BUY & SAVE
$24.95
REECHO Clip in Hair Extensions, 4PCS Blonde Hair Extensions 24" Thick Long Beach Waves hair extensions HE003 Invisible Lace Weft Natural Soft Hairpieces for Women – Dark Blonde with Light Ends
+
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.