feat: Allow restarting services from entrypoint

This commit is contained in:
Carlos Álvaro
2020-05-16 18:22:13 +02:00
parent 0ea143d898
commit efffad123a
2 changed files with 31 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ For other methods to install SaltStack please refer to the [Official SaltStack I
- [Available Configuration Parameters](#available-configuration-parameters)
- [Usage](#usage)
- [Shell Access](#shell-access)
- [Restart Services](#restart-services)
- [References](#references)
## Installation
@@ -355,6 +356,16 @@ For debugging and maintenance purposes you may want access the container shell.
docker exec -it salt_master bash
```
## Restart Services
You can restart containers services by running the following command:
```sh
docker exec -it salt_master entrypoint.sh app:restart [salt-service]
```
Where `salt-service` is one of: `salt-master` os `salt-api` (if `SALT_API_SERVICE_ENABLED` is set to `true`)
## References
- https://docs.saltstack.com/en/latest/topics/installation/index.html