docker容器内安装yum,vim等命令

docker容器内安装yum,vim等命令,以及配置ls指令

  • 使用国内镜像
cp /etc/apt/sources.list /etc/apt/sources.list.bak

echo "" > /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/debian buster main" >> /etc/apt/sources.list ;
echo "deb http://mirrors.aliyun.com/debian-security buster/updates main" >> /etc/apt/sources.list ;
echo "deb http://mirrors.aliyun.com/debian buster-updates main" >> /etc/apt/sources.list ;
  • 更新apt-get指令
apt-get update
  • 安装yum命令
apt-get install vim

你可能感兴趣的:(docker,vim,docker,linux)