toastie89 68a2c2dd5d fixed example | 1 year ago | |
---|---|---|
.. | ||
.env.template | 5 years ago | |
.gitignore | 5 years ago | |
README.md | 1 year ago | |
docker-compose.yml | 5 years ago |
mc is a command to control MinIO. To run mc it within docker:
cp .env.template .env && vi .env
docker-compose run minio-mc
.env
and make it available under the name myminio
for the MC CLI running in the container.# 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 johndoe
# policies
mc admin policy list myminio
mc admin policy info readonly
mc admin policy info writeonly
mc admin policy info readwrite
apg -M ncl -m 30 -a 0 -n 10