On Thu, Nov 12, 2020 at 04:02:58PM +0800, Wang Chenglong wrote:
+++ b/container/initrd-cifs/Dockerfile @@ -0,0 +1,24 @@ +# Origin: https://github.com/Stanback/alpine-samba +# Copyright (C) 2016-2020 Eric D. Stanback +# SPDX-License-Identifier: GPL-3.0
+FROM alpine:edge
+MAINTAINER Xiao Shenwei xiaoshenwei96@163.com
+RUN sed -ri.origin 's|^https?://dl-cdn.alpinelinux.org|http://mirrors.huaweicloud.com%7Cg' /etc/apk/repositories
Unnecessary blank lines.
+RUN adduser -u 1090 -D lkp
Unnecessary blank lines.
ok
+cmd=(
- docker run
- -dt
Sometimes someone use '-id' sometimes someone use '-td'. I've never understood the difference between '-id' and '-td'.
me too,
it seem that use -d is enough Thanks, Shenwei
Thanks, Chenglong
- -p 446:445
- -v /etc/localtime:/etc/localtime:ro
- -v /srv/initrd:/srv/initrd
- --name initrd-cifs
- --restart=always
- alpine/initrd-cifs
+)
+"${cmd[@]}"
2.23.0