Last active
March 20, 2020 17:14
-
-
Save erangaeb/aea2183f8313b900e74f796a54fb5506 to your computer and use it in GitHub Desktop.
minioc command line client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# connect to minio docker container | |
# mc command available inside minio container | |
docker exec -it minio bash | |
# configure minio storage | |
mc config host add <storage name> <host> <access key> <secret key> | |
mc config host add rahasak http://127.0.0.1:9000 rahasakkey rahasaksecret | |
# make bucket | |
mc mb <storage name>/<bucket name> | |
mc mb rahsak/lambda | |
# list buckets in storage | |
mc ls <storage name> | |
mc ls rahasak | |
# add object to bucket | |
mc cp <object path> <storage name>/<bucket name> | |
mc cp /var/log/dpkg.log rahasak/lambda | |
mc cp /var/log/alternatives.log rahasak/lambda | |
# list objects in a bucket | |
mc ls <storage name>/<bucket name> | |
mc ls rahasak/lambda | |
# find object | |
# mc find <storage name> <patterns> | |
mc find rahasak --name *.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment