+SCRIPT_DIR=$(dirname $(realpath $0)) +. $(dirname $SCRIPT_DIR)/defconfig.sh
just directly use $CCI_SRC/container/defconfig.sh
+docker_rm ntp-server +cmd=(
- docker run
- -id
-i is unnecessary, remove it.
- --name=ntp-server
- -p 123:123/udp
- ntp-server:latest
latest is unnecessary, default is latest.
Thanks, Yinsi
+)
+"${cmd[@]}"
2.23.0