Docker installed on your machine. Download the relevant installer from [here](https://www.docker.com/community-edition#/download).
Docker installed on your machine. Download the relevant installer from [here](https://www.docker.com/community-edition#/download).
## Run Standalone Minio on Docker.
## Run Standalone Minio on Docker.
Minio needs a persistent volume to store configuration and application data. However, for testing purposes, you can launch Minio by simply passing a directory (`/export` in the example below). This directory gets created in the container filesystem at the time of container start. But all the data is lost after container exits.
Minio needs a persistent volume to store configuration and application data. However, for testing purposes, you can launch Minio by simply passing a directory (`/data` in the example below). This directory gets created in the container filesystem at the time of container start. But all the data is lost after container exits.
```sh
```sh
docker run -p 9000:9000 minio/minio server /export
docker run -p 9000:9000 minio/minio server /data
```
```
To create a Minio container with persistent storage, you need to map local persistent directories from the host OS to virtual config `~/.minio` and export `/export` directories. To do this, run the below commands
To create a Minio container with persistent storage, you need to map local persistent directories from the host OS to virtual config `~/.minio` and export `/data` directories. To do this, run the below commands
#### GNU/Linux and macOS
#### GNU/Linux and macOS
```sh
```sh
docker run -p 9000:9000 --name minio1 \
docker run -p 9000:9000 --name minio1 \
-v /mnt/export/minio1:/export \
-v /mnt/data:/data \
-v /mnt/config/minio1:/root/.minio \
-v /mnt/config:/root/.minio \
minio/minio server /export
minio/minio server /data
```
```
#### Windows
#### Windows
```sh
```sh
docker run -p 9000:9000 --name minio1 \
docker run -p 9000:9000 --name minio1 \
-v D:\export\minio1:/export \
-v D:\data:/data \
-v D:\export\minio1-config:/root/.minio \
-v D:\minio\config:/root/.minio \
minio/minio server /export
minio/minio server /data
```
```
## Run Distributed Minio on Docker
## Run Distributed Minio on Docker
@ -43,9 +43,9 @@ To override Minio's auto-generated keys, you may pass secret and access keys exp