Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Ghost Dockerfile

This repository contains a fork of the Dockerfile of Ghost for Docker's trusted build published to the public Docker Registry.

It differs in that it

  • Does not run ghost as root
  • Publishes config and capser theme externally to volume. This makes it easy to customize the theme.



  1. Install Docker.

  2. Download trusted build from public Docker Registry: docker pull dockerfile/ghost

    (alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/ghost"


docker run -d -p 80:2368 dockerfile/ghost

Customizing Ghost

docker run -d -p 80:2368 -v <override-dir>:/ghost-override dockerfile/ghost

where <override-dir> is an absolute path of a directory that could contain:

  • config.js: custom config file copied from here (you must replace with
  • content/data/: persistent/shared data
  • content/images/: persistent/shared images
  • content/themes/: more themes

After few seconds, open http://<host> for blog or http://<host>/ghost for admin page.

Selecting a UID/GID

You can control the uid and gid of the ghost user:

docker run -d -p 80:2368 -v <override-dir>:/ghost-override -e GHOST_UID=<uid> -e GHOST_GID=<gid> dockerfile/ghost

You may want to do this if you have a user in your host system that you're using to own the ghost

Docker Pull Command
Source Repository