Using Slate in Docker
Provided in the slate repo is a Dockerfile you can use to run slate using Docker. Docker is similar to Vagrant in that it provides a reproducible, portable development environment using virtualization, however it does not provide a full VM, rather piggy backing off the host, allowing for a slimmer installation profile than Vagrant / full VMs. However, Docker does come with a number of its own terms, and for beginners, we recommend looking at this Glossary to familiarize yourself with some of them.
Dependencies
Getting Started
- Fork this repository on Github.
- Clone your forked repository (not our original one) to your hard drive with
git clone https://github.com/YOURUSERNAME/slate.git cd slate- Build the docker image for slate:
docker build . -t slate
Running Slate
To start a container for slate, run:
docker run -d --rm --name slate -p 4567:4567 -v $(pwd)/build:/srv/slate/build -v $(pwd)/source:/srv/slate/source slate
and you will be able to access your site at http://localhost:4567.
To build your sources while the container is running, run:
docker exec -it slate /bin/bash -c "bundle exec middleman build"
Stopping Slate
To stop the slate container, run:
docker stop slateWhat Now?
The next step is to learn how to edit source/index.md to change the content of your docs. Once you're done, you might want to think about deploying your docs.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
