Signed-off-by: cuiyili 2268260388@qq.com --- container/minio/start | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 container/minio/start
diff --git a/container/minio/start b/container/minio/start new file mode 100755 index 0000000..348bff7 --- /dev/null +++ b/container/minio/start @@ -0,0 +1,18 @@ +#!/bin/bash +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +. ../defconfig.sh +docker_rm minio + +cmd=( + docker run -d + -p 11321:9000 + --name minio + -v /srv/minio/:/srv/minio/ + -e "MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}" + -e "MINIO_SECRET_KEY=${MINIO_SECRET_KEY}" + jessestuart/minio server /srv/minio/ +) + +"${cmd[@]}"
On Mon, Nov 16, 2020 at 06:08:36PM +0800, Cui Yili wrote:
Signed-off-by: cuiyili 2268260388@qq.com
container/minio/start | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 container/minio/start
diff --git a/container/minio/start b/container/minio/start new file mode 100755 index 0000000..348bff7 --- /dev/null +++ b/container/minio/start @@ -0,0 +1,18 @@ +#!/bin/bash +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
+. ../defconfig.sh
Here should add a blank line.
Thanks, Xijian
+docker_rm minio
+cmd=(
- docker run -d
- -p 11321:9000
- --name minio
- -v /srv/minio/:/srv/minio/
- -e "MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}"
- -e "MINIO_SECRET_KEY=${MINIO_SECRET_KEY}"
- jessestuart/minio server /srv/minio/
+)
+"${cmd[@]}"
2.23.0