mirror of
https://github.com/pgsty/minio.git
synced 2026-07-15 16:30:29 +03:00
docker: the docker image will now contain just the static binary
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# 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:
|
||||
|
||||
```docker run -p 9000:9000 -v /home/krishna/.minio:/.minio -v /home/user/export:/export minio:latest```
|
||||
|
||||
Here the data uploaded to the minio server will be persisted to /home/user/export directory.
|
||||
|
||||
# docker build
|
||||
|
||||
To build the docker image:
|
||||
```make dockerimage TAG="<tag>"```
|
||||
Reference in New Issue
Block a user