Salt-master docker container.
To create the image bbinet/salt-master, execute the following command in the
docker-salt-master folder:
docker build -t bbinet/salt-master .
You can now push the new image to the public registry:
docker push bbinet/salt-master
Then, when starting your salt-master container, you will want to bind ports
4505, 4506, 443 (salt-api) and 4430 (Halite) from the salt-master
container to a host external port.
The salt-master container will read its configuration from the /config
directory volume, so you should bind this config volume to a host directory or
data container. The salt-master will load existing settings for the salt
configuration and pki stuff from this /config volume.
By default, the container will try to run the /config/before-exec.sh script,
then the salt-api, then the salt-master, so you can provide additional
provisioning stuff through this script.
You may also configure the salt-master fileserver to be located in another
/data volume.
For example:
$ docker pull bbinet/salt-master
$ docker run --name salt-master \
-v /home/salt-master/config:/config \
-v /home/salt-master/data:/data \
-p 4505:4505 \
-p 4506:4506 \
-p 443:443 \
-p 4430:4430 \
bbinet/salt-master
Content type
Image
Digest
sha256:3e02801be…
Size
96.6 MB
Last updated
almost 11 years ago
docker pull avenda/docker-salt-master