Instructions for installing MinIO with Docker
Introduction
MinIO is a high-performance, open-source Object Storage system that is fully compatible with the Amazon S3 API. Key advantages include ultra-fast data processing speeds, a lightweight cloud-native architecture, easy scalability, and high security with advanced data encryption capabilities.
Detail
First, create a docker-compose.yml file with the following content, changing the YOUR_ACCESS_KEY and YOUR_SECRET_KEY values to suit your needs:
Run the docker container as follows:
If you want to use an interface for easier management, you need to install the MinIO Client (mc) as follows:
- The brew command above is for MacOS; please change it accordingly for the OS you are using.
- After installation, check the version used and create an alias to connect to the running MinIO Docker container.
Here are some commands to use MinIO:
- mc mb myminio/test: Create a new bucket named test on the myminio alias.
- mc cp test myminio/test: Copy the test file or directory to the test bucket of myminio.
- mc ls myminio/test: List the files and directories inside the test bucket.
- mc cp myminio/test/test.txt ./downloaded_test.txt: Download the test.txt file from the bucket to the local machine with a new name.
Then you can view the UI on the browser as follows:
Happy coding!
Comments
Post a Comment