Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
generate docker man pages from source
#! /bin/sh
# Step 1: checkout docker sources, but make sure you do this
# somewhere in /Users directory because boot2docker can only
# share this path with docker containers
git clone https://github.com/docker/docker.git
# Step 2: build docker image
cd docker/man && docker build -t docker/md2man .
# Step 3: build man pages
docker run -v $(realpath ~)/code/docker-manual/docker/man:/docs:rw -w /docs -i docker/md2man /docs/md2man-all.sh
# Step 4: copy generated man pages to /usr/share/man
cp -R man* /usr/share/man/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.