File README.md of Package docker-salt
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
[](https://github.com/PyCQA/pylint)
[](https://github.com/hadolint/hadolint)
# docker-salt
This project aims to provide more complete experience when hosting your Salt Master (and API) in a container.
## How to use this image?
This image is fully compatible in the usage to the upstream image. It should be a drop-in replacement.
```
docker run -d schoolguy/salt
```
## What ENV variables can be used to configure this image?
- `MODE`:
- Allowed values: `master`, `api`, `minion`, `proxy`, `master-api`
- Default: `master-api`
- Description: Decides what processes will be started inside the container by the entrypoint script.
- Note: `master-api` will be deprecated and removed as soon as Salt upstream doesn't require that the Salt API and
Master share the same host.
- `SALT_API_CONFIG`:
- `SALT_MASTER_CONFIG`:
- `SALT_PROXY_ID`
- `SALT_PROXY_CONFIG`
- `SALT_MINION_CONFIG`
- `TODO`
## How to use this image in Kubernetes?
There is currently no salt-operator available and no HelmChart. If this repository is successful enough, then both an
Operator and a HelmChart will be created.
## Repository layout
Due to the limitation in the openSUSE Build Service project this repository can only have a single level. All files
need to live inside the root repository layout.
## Relation to Upstream Saltstack
The offical upstream container can be found at the following places:
- [Gitlab saltstack/open/saltdocker](https://gitlab.com/saltstack/open/saltdocker)
- [Docker Hub](https://hub.docker.com/r/saltstack/salt)
This project is not affilated with Saltstack or VMware in any way.