--- /dev/null
+# Copyright (C) 2013-2014 W. Trevor King <wking@tremily.us>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# * Redistributions of source code must retain the above copyright notice, this
+# list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+
+FROM ${NAMESPACE}/salt:${TAG}
+MAINTAINER ${MAINTAINER}
+#VOLUME ["${PORTAGE}:/usr/portage:ro", "${PORTAGE}/distfiles:/usr/portage/distfiles:rw"]
+
+RUN rc-update add salt-master default
+
+RUN sed -i 's|^\([[:space:]]*\)\(need net\)$|\1\2\n\1need logger|' /etc/init.d/salt-master
+RUN sed -i 's|^#\(log_file: file:///dev/log\)|\1|' /etc/salt/master
+RUN sed -i 's|^\(#log_level_logfile:.*\)$|\1\nlog_level_logfile: info|' /etc/salt/master
+
+EXPOSE 4505
+EXPOSE 4506
--- /dev/null
+Run this [Salt Stack][salt] master image with:
+
+ $ docker run -d --name salt-master-0 --hostname salt \
+ > -p 4505:4505 -p 4506:4506 wking/salt-master
+
+For details on setting up minion keys, see the “Minion keys” section
+of the [salt-minion][] `README`. To preserve accepted keys between
+container restarts, you can [volume-mount][] them from your host:
+
+ $ docker run -d --name salt-master-0 --hostname salt \
+ > -v /etc/salt/pki/salt-master-0:/etc/salt/pki/master \
+ > -p 4505:4505 -p 4506:4506 wking/salt-master
+
+You can use `docker exec` ([new in 1.3][docker-1.3], [docs][exec]) to
+connect to the master container when you need to run `salt` commands.
+
+[salt]: http://saltstack.com/community/
+[salt-minion]: ../salt-minion/
+[volume-mount]: http://docs.docker.com/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume
+[docker-1.3]: http://blog.docker.com/2014/10/docker-1-3-signed-images-process-injection-security-options-mac-shared-directories/
+[exec]: http://docs.docker.com/reference/commandline/cli/#exec