docker能用yum命令吗?
docker能用yum命令。
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
转载请注明:IT运维空间 » 运维技术 » docker能用yum命令吗?
发表评论