Update ghost within docker

My blog is host with docker compose.  I didn’t specify a specific ghost image version in the compose file. So the file can always pull down the latest ghost image when first start up. Additionally, all persistent data  is mounted in the host machine. So there’s no data lost if rebuilding the containers. The updating steps are listed below.

  1. Stop all services. docker-compose stop
  2. Pull new images.docker-compose pull
  3. Restart services.docker-compose up -d. This command will rebuild containers from the newest images.