It is recommended to have persistent storage because, without it, all data will be lost once the container is shut down. However, if you need full control of the storage and want to allow other processes besides Docker to access or modify the storage layer, then bind mounts is the right choice for your environment. If you want your storage to be fully managed by Docker and accessed only through Docker containers and the Docker CLI, you should choose to use persistent storage. Note: Though both methods are similar, there is a slight difference. To avoid losing your data, you can set up persistent storage or bind mounts for your container. If you don’t specify where to store the information, all the Grafana data will be lost when you stop the Docker container. When you use Docker containers, their data is temporary by default. # docker stop NAME, which is `grafana` as previously defined # To stop the grafana container run the command # This will display a list of containers that looks like the following:ĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESĬd48d3994968 grafana/grafana-enterprise "/run.sh" 8 seconds ago Up 7 seconds 0.0.0.0:3000->3000/tcp grafana To stop the Grafana container, run the following command: # The `docker ps` command shows the processes running in Docker Grafana/grafana-enterprise = the image to run in the container Stop the Grafana container Name = assign a logical name to the container, for example, grafana P = assign the port number, which in this case is 3000 To run the latest stable version of Grafana, run the following command: docker run -d -p 3000:3000 -name=grafana grafana/grafana-enterprise For more information, refer to Linux post-installation steps for Docker Engine. Note: If you are on a Linux system (for example, Debian or Ubuntu), you might need to add sudo before the command or add your user to the docker group. This section shows you how to run Grafana using the Docker CLI. For instructions on configuring a Docker image for Grafana, refer to Configure a Grafana Docker image. The default images for Grafana are created using the Alpine Linux project and can be found in the Alpine official image. Additionally, you have the option to upgrade to the full Enterprise feature set, which includes support for Enterprise plugins. It is free and includes all the features of the OSS edition. Note: The recommended and default edition of Grafana is Grafana Enterprise. Grafana Open Source: grafana/grafana-oss.Grafana Enterprise: grafana/grafana-enterprise.Grafana Docker images come in two editions: Specifically, it covers running Grafana via the Docker command line interface (CLI) and docker-compose. This topic guides you through installing Grafana via the official Docker images. Create a free account to get started, which includes free forever access to 10k metrics, 50GB logs, 50GB traces, 500VUh k6 testing & more. You can use Grafana Cloud to avoid installing, maintaining, and scaling your own instance of Grafana. Enterprise Open source Run Grafana Docker image
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |