在docker中执行某些命令的时候 docker bash: xxx : command not found 通用解决方案
我们在使用docker的时候,有时需要使用某些命令,比如使用vim命令或者使用systemctl的时候提示commandnotfound。1:现象,如下图:2:原因饭呢西容器内没有安装相关服务的命令3:解决办法命令公式:apt-get update && apt-get install 需要的命令比如这里凯哥(微信公众号凯哥Java
我们在使用docker的时候,有时需要使用某些命令,比如使用vim命令或者使用systemctl的时候提示command not found。
1:现象,如下图:

2:原因饭呢西
容器内没有安装相关服务的命令
3:解决办法
命令公式:
apt-get update && apt-get install 需要的命令
比如这里凯哥(微信公众号 凯哥Java:kaigejava)这里需要更新yum命令。套用上面的公式
apt-get update && apt-get install yum
执行,会询问是继续。如下图;

输入Y。继续,然后会继续下载更新。
凯哥(微信公众号 凯哥Java:kaigejava)这里就记录一些常用的command not found命令在
原创不易,完成人机校验,阅读全文
相关推荐
VUE【已解决】在使用 npm install的时候提示node-sass command faile 解决方案 工作小总结maven在打成jar的时候中文乱码解决方案REDIS【已解决】Redis分片集群在缩容的时候,执行删除节点命令提示:is not empty! Reshard data away and try again工作小总结【已解决】Spring Boot多数据源的时候,mybatis报错提示:Invalid bound statement (not found)经验分享spring boot 启动的时候required a bean of type 'XXX' not be (二)学习笔录-SPRING BOOTspring boot 启动的时候required a bean of type 'XXX' that could not beVUE【已解决】在使用npm install的时候提示错误 npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/xxx怎么解决?FLINK【Flink教程-已解决】在idea中测试flink的时候,提示读取文件时候错误,提示文件不存在解决方案