8000 minio/docs/zh_CN/chroot at master · dominiklessel/minio · GitHub
[go: up one dir, main page]

Skip to content
  • Latest commit

     

    History

    History
     
     

    chroot

    Folders and files

    NameName
    Last commit message
    Last commit date

    parent directory

    ..
     
     

    README.md

    在Chrooted环境中运行MinIO Slack Docker Pulls

    Chroot允许在标准的Linux上基于用户的namespace隔离。

    1. 前置条件

    • 熟悉 chroot
    • 系统上已经安装Chroot

    2. 在Chroot中安装MinIO

    mkdir -p /mnt/export/${USER}/bin
    wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /mnt/export/${USER}/bin/minio
    chmod +x /mnt/export/${USER}/bin/minio

    将你的proc挂载绑定到目标chroot目录

    sudo mount --bind /proc /mnt/export/${USER}/proc
    

    3.在Chroot中运行单节点MinIO

    GNU/Linux

    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
    ...
    ...

    现在可以在主机的9000端口访问实例,在浏览器中输入http://127.0.0.1:9000/即可访问

    进一步探索

    0