专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

dsavell/grav Docker 镜像 - 轩辕镜像

grav
dsavell/grav
自动构建
dsavell
A Docker image based on minideb:bookworm with Grav CMS and PHP8.2/nginx.
13 收藏0 次下载
🔒 更安全的专业镜像服务
镜像简介版本下载
🔒 更安全的专业镜像服务

dsavell/grav

!grav

Grav is a Fast, Simple, and Flexible file-based Web-platform. There is Zero installation required. Although Grav follows principles similar to other flat-file CMS platforms, it has a different design philosophy than most.

The underlying architecture of Grav is built using well established and best-in-class technologies. This is to ensure that Grav is simple to use and easy to extend. Some of these key technologies include:

  • Twig Templating: for powerful control of the user interface
  • Markdown: for easy content creation
  • YAML: for simple configuration
  • Parsedown: for fast Markdown and Markdown Extra support
  • Doctrine Cache: for performance
  • Pimple Dependency Injection Container: for extensibility and maintainability
  • Symfony Event Dispatcher: for plugin event handling
  • Symfony Console: for CLI interface
  • Gregwar Image Library: for dynamic image manipulation

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here.

Simply pulling dsavell/grav:admin should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

ArchitectureAvailableTag
x86-64✅amd64-<version tag>
arm64❌arm64v8-<version tag>
armhf❌arm32v7-<version tag>

Version Tags

This image provides various versions that are available via tags.

TagAvailableDescription
admin✅Stable Grav Core + Admin plugin releases
core✅Stabe Grav Core releases
admin-<date>✅Stable Grav Core + Admin plugin releases + date
core-<date>✅Stabe Grav Core releases + date
admin-<version tag>✅Pinned Grav Core + Admin plugin releases
core-<version tag>✅Pinned Grav Core releases
admin-<version tag>-<date>✅Pinned Grav Core + Admin plugin releases + date
core-<version tag>-<date>✅Pinned Grav Core releases + date

Application Setup

WebUI can be found at http://<your-ip>

More information can be found on the official documentation here

Usage

Here are some example snippets to help you get started creating a container.

docker-compose
yaml
---
version: '2.1'
services:
  grav:
    image: dsavell/grav:<TAG>
    container_name: grav
    restart: unless-stopped
    environment:
      - DUID=1000
      - DGID=1000
      - TZ=Europe/London # optional
      - GRAV_MULTISITE=subdirectory # optional
      - ROBOTS_DISALLOW=false # optional
      - GRAV_PLUGINS=devtools,precache # optional
    volumes:
      - /data/containers/grav/backup:/var/www/grav/backup
      - /data/containers/grav/logs:/var/www/grav/log
      - /data/containers/grav/user:/var/www/grav/user
    ports:
      - 80:80
docker cli (click here for more info)
bash
docker create \
  --name=grav \
  --restart unless-stopped \
  -e DUID=1000 \
  -e DGID=1000 \
  -p 80:80 \
  -e TZ=Europe/London `# optional` \
  -e GRAV_MULTISITE=subdirectory `# optional` \
  -e ROBOTS_DISALLOW=false `# optional` \
  -e GRAV_PLUGINS=devtools,precache `# optional` \
  -v /data/containers/grav/backup:/var/www/grav/backup \
  -v /data/containers/grav/logs:/var/www/grav/logs \
  -v /data/containers/grav/user:/var/www/grav/user \
  dsavell/grav:<TAG>
docker start grav

Parameters

Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

ParameterFunction
-p 80Http webUI
-e DUID=1000for UserID - see below for explanation
-e DGID=1000for GroupID - see below for explanation
-e TZ-e GRAV_MULTISITE=subdirectoryDeploy a Grav multisite (subdirectory) installation.
-e ROBOTS_DISALLOW=falseReplace default /robots.txt file with one discouraging indexers.
-e TZ=Europe/LondonSet your timezone
-e GRAV_PLUGINS=devtools,precacheInstall extra plugins automaticall (must be comma separated)
-v /var/www/backupContains your location for Grav backups
-v /var/www/logsContains your location for your Grav log files
-v /var/www/userContains your Grav content

User / Group Identifiers

When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id user as below:

bash
  $ id username
    uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)

Issues

  • Scheduler mentions cron is not available in the UI, however it works. issue has been raised [***]

Changelog

  • 03/10/2023:
    • Removed cumbersome DevOps steps.
    • Updated GitHub workflows with nodejs 20.x
    • Updated pre-commit hooks.
    • Updated OS from bullseye to bookworm.
    • Updated PHP 7.4 to 8.2. Thanks to funilrys #56
    • Updated some documentation regarding installation steps.
    • Added ability to install plugins. Thanks to tyzbit #64
  • 24/07/2022:
    • Added moved from master branch to main branch.
    • Added commitlint function to verify proper commit messages.
    • Added .editorconfig to ensure standards across IDE's.
    • Added .gitattributes to ensure standards across git CLI.
    • Added build to NPM/YARN to locally verify code & commit messages.
    • removed build shell script.
    • Added GitHub Actions CI/CD workflows
      • 1:00am everyday builds.
      • Build on any new change to main branch.
      • Code standards check.
      • Docker lint check.
      • Docker build check.
    • Added prettier codebase formatting.
    • Added pre-commit yaml to validate code syntax / format.
    • Added MIT license.
    • Added pre-commit husky utility to trigger pre-commit & commitlint with prettier for local development.
    • Correct hadolint errors in the Dockerfiles.
  • 18/05/2022:
    • Added subdomain as an option for GRAV_MULTISITE
    • Added NGINX_CLIENT_MAX_BODY_SIZE to specify the nginx config client_max_body_size
    • Updated to Grav 1.7.33
  • 16/10/2021:
    • Updated to Grav 1.7.23
    • Updated curl script in Docker file to correctly pull latest version of grav.
    • Updated to Debian 11.x (bullseye)
    • Changed crontab logic, however it works, just complains in the UI, known bug in admin plugin above.
    • Added check for bin/grav/ scheduler -i to startup output.
    • Added check for crontab -l to startup output.
  • 15/04/2021:
    • Updated to Grav 1.7.12
    • Added nano text editor to the image.
  • 10/04/2021:
    • Updated to Grav 1.7.10
    • Updated to PHP 7.4.x
    • Fix permissions on startup because of topic names with whitespaces. Thanks to Miroka96 #22
    • Added support for multisite subdirectory. Thanks to hughbris #21
    • Fixed uploading to the CMS using a tmp directory this is now /var/www/grav/tmp.
  • 11/10/2020:
    • Updated to Grav 1.6.28
  • 02/08/2020:
    • Updated to Grav 1.6.26
  • 01/06/2020:
    • Updated to Grav 1.6.25
  • 22/04/2020:
    • Fix permissions for cron & GRAV Scheduler. Thanks to SykieChen #19
  • 12/04/2020:
    • Updated to Grav 1.6.23
  • 20/02/2020:
    • Updated to Grav 1.6.21
  • 09/12/2019:
    • Fixed missing php7.3-mbstring on admin tag. Thanks to Miroka96 #13
  • 08/12/2019:
    • Updated to Grav 1.6.19
    • Fixed crontab schedules. Thanks to coldestheart #11
  • 30/11/2019:
    • Updated baseimage from stretch to buster. Thanks to coldestheart #10
    • Added cron & added cronjob allows jobs to be run on a periodic basic, GRAV relies on this. Thanks to coldestheart #10
    • Added php7.3-intl for Multilang support for twig tools. Thanks to coldestheart #10
    • Enabled caching in Nginx for tools that analyze speed performance (like gtmetrix) Thanks to coldestheart #10
    • Startup scripts now enable cron. Thanks to coldestheart #10
  • 15/11/2019:
    • Fixed working directory this is now set to /var/ww/grav, now commands like bin/grav & bin/gpm can be used directly. Thanks to aptonline #9
  • 10/08/2019:
    • Fixed GRAV user directory being overwritten when rebuilding container. Thanks to Miroka96 #6
  • 18/06/2019: The Better Release?
    • Better File/Volume control
    • Better tagging / versioning of GRAV Core.
    • Better User/Group management.
    • Better Documentation.
  • 10/06/2019: The Refactor Release
    • Converted to minideb for better package management.
    • Updated to PHP 7.3.
    • Better logic to pull latest version when building.
    • Better logging.
    • blog image removed.
    • GRAV Core & GRAV Core + Admin Plugin only images for now.
    • Smaller Docker layering.
    • Fixed nginx configuration thanks to esapy #1
  • 10/04/2018: The Volume Release
    • The /var/www volume can now be mounted.
  • 02/01/2018: The 2018 Release
    • Improved Code
    • Now using github API to pull latest GRAV release
  • 27/07/2017: The Automated Release
    • Updated tag "blog" to now use github API to download latest Blog-Skeleton zip file
    • Improved code on all tags
    • Typo corrections on the README.md
  • 29/06/2017: The Blog Release
    • added tag blog This is a skeleton of Blog-Skeleton
  • 28/06/2017: The Even Smaller Release
    • Now uses image from ej52/alpine-nginx-php
    • Size has reduced from 657 to 267mb & with admin plugin 277mb
  • 22/06/2017: The Better Release
    • Now uses image from php:7.0-apache
    • Size has reduced from 1.2gb to 657mb & with admin plugin 682mb
    • Corrected GRAV permissions
    • Less packages installed during Docker build + cleanup
  • 21/06/2017: Initial Release
    • First Initial Release
    • No Optimization
    • Full Operating System of centos used
    • No Custom Features
查看更多 grav 相关镜像 →
shinsenter/grav logo
shinsenter/grav
shinsenter
(PHP/Grav)生产就绪的Docker镜像,具备自动Grav安装功能。
2100K+ pulls
上次更新:4 天前
linuxserver/grav logo
linuxserver/grav
linuxserver
Grav是一个快速、简单、灵活的文件型Web平台,LinuxServer.io提供的Docker镜像包含grav-admin插件,支持多架构,提供定期应用和安全更新,便于用户映射和部署,适合构建各类网站。
46500K+ pulls
上次更新:24 天前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
dsavell/grav
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.