Public Repository

Last pushed: a year ago
Short Description
Example of an Alpine Linux based Grafana container
Full Description

Created for this issue in the grafana/grafana-docker repository.


Running this container

Start the container with name grafana-alpine-test and expose port 3000.

docker run -d --name grafana-alpine-test -p 3000:3000 adipirro852/grafana:alpine

Once running, open a web browser and go to localhost:3000


The following volumes are exposed by the container:

  • /grafana/conf Configuration directory
  • /grafana/data/db Sqlite3 database
  • /grafana/data/log Log files
  • /grafana/data/plugins Plugins

On Alpine Linux

This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use musl libc instead of glibc and friends, so certain software might run into issues depending on the depth of their libc requirements. However, most software doesn't have an issue with this, so this variant is usually a very safe choice. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).

Docker Pull Command