自制Linux桌面的Docker镜像
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 本文以制作一个Debian桌面镜像为例,介绍手动制作容器镜像的过程。 # 拉取最新的Debian官方包 docker pull debian:latest # 跑起一个Debian实例 docker run -it debian:latest # 更改软件包源到国内(示例为阿里云) echo -ne "deb http://mirrors.aliyun.com/debian/ buster main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib \ndeb http://mirrors.aliyun.com/debian-security buster/updates main \ndeb-src http://mirrors.aliyun.com/debian-security buster/updates main \ndeb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ buster