我无法确定如何在BusyBox容器中打印(unix工具)版本:
$ docker run -it quay.io/quay/busybox:latest $ awk --version awk: unrecognized option `--version' BusyBox v1.32.0 (2020-08-31 17:40:13 UTC) multi-call binary. Usage: awk [OPTIONS] [AWK_PROGRAM] [FILE]... -v VAR=VAL Set variable -F SEP Use SEP as field separator -f FILE Read program from FILE -e AWK_PROGRAM
$ cut --version cut: unrecognized option `--version' BusyBox v1.32.0 (2020-08-31 17:40:13 UTC) multi-call binary. Usage: cut [OPTIONS] [FILE]... Print selected fields from each input FILE to stdout -b LIST Output only bytes from LIST -c LIST Output only characters from LIST -d CHAR Use CHAR instead of tab as the field delimiter -s Output only the lines containing delimiter -f N Print only these fields -n Ignored
有什么建议吗?许多热的容器都建在BusyBox的顶部,我最好能做到这一点。
谢谢