fix: update README.md for new release (#12637)

rename all 'docker run' commands to 'podman run'

fixes #12633
This commit is contained in:
Harshavardhana
2021-07-07 18:07:29 -07:00
committed by GitHub
parent c99d399d09
commit 2ce60d772b
13 changed files with 58 additions and 113 deletions

View File

@@ -39,16 +39,26 @@ Cache drives need to have `strictatime` or `relatime` enabled for disk caching f
```sh
truncate -s 4G /tmp/data
```
mkfs.xfs /tmp/data # build xfs filesystem on /tmp/data
### Build xfs filesystem on /tmp/data
```
mkfs.xfs /tmp/data
```
sudo mkdir /mnt/cache # create mount dir
### Create mount dir
```
sudo mkdir /mnt/cache #
```
sudo mount -o relatime /tmp/data /mnt/cache # mount xfs on /mnt/cache with atime.
### Mount xfs on /mnt/cache with atime.
```
sudo mount -o relatime /tmp/data /mnt/cache
```
docker pull minio/minio
docker run --net=host -e MINIO_ROOT_USER={s3-access-key} -e MINIO_ROOT_PASSWORD={s3-secret-key} \
### Start using the cached drive with S3 gateway
```
podman run --net=host -e MINIO_ROOT_USER={s3-access-key} -e MINIO_ROOT_PASSWORD={s3-secret-key} \
-e MINIO_CACHE_DRIVES=/cache -e MINIO_CACHE_QUOTA=99 -e MINIO_CACHE_AFTER=0 \
-e MINIO_CACHE_WATERMARK_LOW=90 -e MINIO_CACHE_WATERMARK_HIGH=95 \
-v /mnt/cache:/cache minio/minio:latest gateway s3