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
73 73
74Read more about `docker service` [here](https://docs.docker.com/engine/swarm/how-swarm-mode-works/services/)74Read 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
77To 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```
79docker 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### Retrieving Container ID87### Retrieving Container ID
77To use Docker commands on a specific container, you need to know the `Container ID` for that container. To get the `Container ID`, run88To 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

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