Toastie d2fb848d8c shortened 2 years ago
..
.env.template fb8712f1d9 initial 4 years ago
.gitignore 39efd60907 initial 4 years ago
README.md d2fb848d8c shortened 2 years ago
docker-compose.yml fb8712f1d9 initial 4 years ago

README.md

MioIO Client (mc)

mc is a command to control MinIO. To run mc it within docker:

  • Set your MinIO connection in .env: cp .env.template .env && vi .env
  • Run the container as one-shot: docker-compose run minio-mc
  • Background: This will set a your MinIO connection as per .env and make it available under the name myminio for the MC CLI running in the container.

Typical commands

# buckets
mc mb myminio/documents   # create bucket
mc ls myminio             # list list
mc tree myminio           # list buckets and folders
mc rb myminio/documents   # remove bucket

# dealing with users
mc admin user add myminio johndoe 30RandomAlphaNumericCharacters
mc admin policy set myminio readwrite user=johndoe
mc admin user list myminio
mc admin user info myminio johndoe
mc admin user remove myminio dominik_zino2

# policies
mc admin policy list myminio 
mc admin policy info readonly
mc admin policy info writeonly
mc admin policy info readwrite

References