问题描述
docker容器中执行which
命令报错,提示命令不存在
$ which java bash: which: command not found
解决办法
安装which
yum install -y which
再次执行,发现可以了
which java /usr/bin/java
docker容器中执行which
命令报错,提示命令不存在
$ which java bash: which: command not found
安装which
yum install -y which
再次执行,发现可以了
which java /usr/bin/java