MinIO: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
  '''MacOS:'''
  '''MacOS:'''
  export MINIO_HOME=$HOME/minio
  export MINIO_HOME=$HOME/minio
| valign="top" |
'''Chorke:'''
export MINIO_HOME=$HOME/.chorke/academia/var/minio
|}
|}
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
Line 23: Line 29:


  mkdir -p $MINIO_HOME/data
  mkdir -p $MINIO_HOME/data
  chown -R 200:200 $MINIO_HOME/data
  mkdir -p $HOME/.chorke/academia/var/minio/data


==Docker==
==Docker==
{|
| valign="top" |
<source lang="bash" highlight="7,8">
<source lang="bash" highlight="7,8">
docker run --detach \
docker run --detach \
Line 35: Line 43:
quay.io/minio/minio server /data --console-address ":9001"
quay.io/minio/minio server /data --console-address ":9001"
</source>
</source>
| valign="top" |
<source lang="bash" highlight="7,8">
docker run --detach \
--publish 9000:9000 \
--publish 9001:9001 \
--restart always \
--name minio \
--volume $HOME/.chorke/academia/var/minio/data:/data \
quay.io/minio/minio server /data --console-address ":9001"
</source>
|}


==Knowledge==
==Knowledge==

Revision as of 20:48, 31 July 2022

Linux:
export MINIO_HOME=/srv/minio
MacOS:
export MINIO_HOME=$HOME/minio
Chorke:
export MINIO_HOME=$HOME/.chorke/academia/var/minio
Local location Container location Usage
$MINIO_HOME/data /data MinIO data
docker run -it --rm \
--publish 9000:9000 \
--publish 9001:9001 \
quay.io/minio/minio \
--version
mkdir -p $MINIO_HOME/data
mkdir -p $HOME/.chorke/academia/var/minio/data

Docker

docker run --detach \
--publish 9000:9000 \
--publish 9001:9001 \
--restart always \
--name minio \
--volume  $MINIO_HOME/data:/data \
quay.io/minio/minio server /data --console-address ":9001"
docker run --detach \
--publish 9000:9000 \
--publish 9001:9001 \
--restart always \
--name minio \
--volume $HOME/.chorke/academia/var/minio/data:/data \
quay.io/minio/minio server /data --console-address ":9001"

Knowledge

docker exec -it minio bash

References