Showing the changes to docs/docker (1 of 5 files). Show all
Unified · Split
| @@ -73,6 +73,17 @@ docker service create --name="minio-service" --secret="access_key" --secret="sec · 72 unmodified lines | ||
| 73 | 73 | |
| 74 | 74 | Read more about `docker service` [here](https://docs.docker.com/engine/swarm/how-swarm-mode-works/services/) |
| 75 | 75 | |
| 76 | +#### Minio Custom Access and Secret Key files | |
| 77 | +To use other secret names follow the instuctions above and replace `access_key` and `secret_key` with your custom names (e.g. `my_secret_key`,`my_custom_key`). Run your service with | |
| 78 | +``` | |
| 79 | +docker service create --name="minio-service" \ | |
| 80 | + --secret="my_access_key" \ | |
| 81 | + --secret="my_secret_key" \ | |
| 82 | + --env="MINIO_ACCESS_KEY_FILE=my_access_key" \ | |
| 83 | + --env="MINIO_SECRET_KEY_FILE=my_secret_key" \ | |
| 84 | + minio/minio server /data | |
| 85 | +``` | |
| 86 | + | |
| 76 | 87 | ### Retrieving Container ID |
| 77 | 88 | To use Docker commands on a specific container, you need to know the `Container ID` for that container. To get the `Container ID`, run |
| 78 | 89 | |