docker容器更换源

docker 容器换源

$ sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
$ sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
$ apt clean
$ apt-get update -y
$ apt-get install vim
posted @ 2022-10-28 14:28  紫川先生  阅读(141)  评论(0)    收藏  举报