用Docker安装(尝鲜)Cutefish 桌面系统
安装依赖
首先需要安装一款神奇的工具:x11docker,有多神奇呢?让你的docker可以运行可视化应用程序甚至一个完整的桌面系统,够不?。详细介绍和安装教程看它的github仓库吧,我就不赘述了。
制作镜像
创建一个文本文件命名为 Dockerfile并写入下列指令:
from archlinux
RUN cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist_old
RUN echo "Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch" > /etc/pacman.d/mirrorlist
RUN cat /etc/pacman.d/mirrorlist_old >> /etc/pacman.d/mirrorlist
RUN pacman -Syy --noconfirm
RUN pacman -S --noconfirm cutefish
RUN pacman -S --noconfirm noto-fonts noto-fonts-cjk
RUN pacman -S --noconfirm sudo
RUN cat /etc/pacman.d/mirrorlist
CMD cutefish-session
在终端中cd进入Dockerfile文件所在目录,然后执行下列命令构建镜像: