History

Add custom secret names for Docker (#5355)

Paul Trunk committed 8 years ago

Commit bd9cdcf1 parent 7c72d145 files · +24 −7Browse files

Showing the changes to docs/docker (1 of 5 files). Show all

Unified · Split

docs/docker/README.md+11−0
@@ -73,6 +73,17 @@ docker service create --name="minio-service" --secret="access_key" --secret="sec · 72 unmodified lines
7373
7474 Read more about `docker service` [here](https://docs.docker.com/engine/swarm/how-swarm-mode-works/services/)
7575
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+
7687 ### Retrieving Container ID
7788 To use Docker commands on a specific container, you need to know the `Container ID` for that container. To get the `Container ID`, run
7889

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t