2015-11-06 19:46:04 -05:00
|
|
|
# docker run
|
|
|
|
|
|
|
|
To run docker image:
|
|
|
|
```docker run -p 9000:9000 minio/minio:latest```
|
|
|
|
|
|
|
|
This will start minio server in the docker container, the data however is not persistent.
|
|
|
|
If you need persistent storage you can use the command:
|
|
|
|
|
2015-11-27 23:41:41 -05:00
|
|
|
```docker run -p 9000:9000 -v ${HOME}/.minio:/.minio -v ${HOME}/export:/export minio:latest```
|
2015-11-06 19:46:04 -05:00
|
|
|
|
2015-11-27 23:41:41 -05:00
|
|
|
Here the data uploaded to the minio server will be persisted to ${HOME}/export directory.
|
2015-11-06 19:46:04 -05:00
|
|
|
|
|
|
|
# docker build
|
|
|
|
|
|
|
|
To build the docker image:
|
|
|
|
```make dockerimage TAG="<tag>"```
|