美文网首页
docker 安装vim命令

docker 安装vim命令

作者: 会飞的小猪 | 来源:发表于2022-03-04 16:39 被阅读0次

目前docker没办法使用vim命令。百度发现都是apt-get update && apt-get install vim。千篇一律,不知道这些人是怎么成功的。
其实要设置下apt源才行。

cat >/etc/apt/sources.list <<EOF
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
EOF

设置之前别忘了备份下这个文件。

相关文章

网友评论

      本文标题:docker 安装vim命令

      本文链接:https://www.haomeiwen.com/subject/tadmrrtx.html