2020-03-24 17:51:06 -04:00
|
|
|
# Deploy MinIO on Chrooted Environment [![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io) [![Docker Pulls](https://img.shields.io/docker/pulls/minio/minio.svg?maxAge=604800)](https://hub.docker.com/r/minio/minio/)
|
2018-01-11 21:25:40 -05:00
|
|
|
|
|
|
|
Chroot allows user based namespace isolation on many standard Linux deployments.
|
|
|
|
|
|
|
|
## 1. Prerequisites
|
2022-02-11 19:51:25 -05:00
|
|
|
|
|
|
|
- Familiarity with [chroot](http://man7.org/linux/man-pages/man2/chroot.2.html)
|
|
|
|
- Chroot installed on your machine.
|
2018-01-11 21:25:40 -05:00
|
|
|
|
2019-04-09 14:39:42 -04:00
|
|
|
## 2. Install MinIO in Chroot
|
2022-02-11 19:51:25 -05:00
|
|
|
|
2018-01-11 21:25:40 -05:00
|
|
|
```sh
|
|
|
|
mkdir -p /mnt/export/${USER}/bin
|
2019-04-09 14:39:42 -04:00
|
|
|
wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /mnt/export/${USER}/bin/minio
|
2018-01-11 21:25:40 -05:00
|
|
|
chmod +x /mnt/export/${USER}/bin/minio
|
|
|
|
```
|
|
|
|
|
|
|
|
Bind your `proc` mount to the target chroot directory
|
2022-02-11 19:51:25 -05:00
|
|
|
|
2018-01-11 21:25:40 -05:00
|
|
|
```
|
|
|
|
sudo mount --bind /proc /mnt/export/${USER}/proc
|
|
|
|
```
|
|
|
|
|
2019-04-09 14:39:42 -04:00
|
|
|
## 3. Run Standalone MinIO in Chroot
|
2022-02-11 19:51:25 -05:00
|
|
|
|
2018-01-11 21:25:40 -05:00
|
|
|
### GNU/Linux
|
2022-02-11 19:51:25 -05:00
|
|
|
|
2018-01-11 21:25:40 -05:00
|
|
|
```sh
|
|
|
|
sudo chroot --userspec username:group /mnt/export/${USER} /bin/minio --config-dir=/.minio server /data
|
|
|
|
|
|
|
|
Endpoint: http://192.168.1.92:9000 http://65.19.167.92:9000
|
|
|
|
AccessKey: MVPSPBW4NP2CMV1W3TXD
|
|
|
|
SecretKey: X3RKxEeFOI8InuNWoPsbG+XEVoaJVCqbvxe+PTOa
|
|
|
|
...
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
2022-02-11 19:51:25 -05:00
|
|
|
Instance is now accessible on the host at port 9000, proceed to access the Web browser at <http://127.0.0.1:9000/>
|
2018-01-11 21:25:40 -05:00
|
|
|
|
|
|
|
## Explore Further
|
2022-02-11 19:51:25 -05:00
|
|
|
|
2022-09-29 00:28:45 -04:00
|
|
|
- [MinIO Erasure Code Overview](https://min.io/docs/minio/linux/operations/concepts/erasure-coding.html)
|
|
|
|
- [Use `mc` with MinIO Server](https://min.io/docs/minio/linux/reference/minio-mc.html)
|
|
|
|
- [Use `aws-cli` with MinIO Server](https://min.io/docs/minio/linux/integrations/aws-cli-with-minio.html)
|
|
|
|
- [Use `minio-go` SDK with MinIO Server](https://min.io/docs/minio/linux/developers/go/minio-go.html)
|
|
|
|
- [The MinIO documentation website](https://min.io/docs/minio/linux/index.html)
|