Sign inSign up

reechand/xarclock

By reechand

•Updated almost 3 years ago

演示docker能力的GUI时钟

Image
0

256

reechand/xarclock repository overview

⁠用法

xhost + && X=/tmp/.X11-unix && docker run --rm -it -v $X:$X -e DISPLAY=:0 reechand/xarclock xarclock

由以上命令可知,我们采用的是linux宿主机上的X服务器

⁠docker image的生成

⁠Dockerfile

FROM reechand/ubuntu:22.04
RUN apt install -y xarclock

⁠生成和上传脚本

#! /usr/bin/bash
clear &&
docker build -t reechand/xarclock . &&
clear &&
bash -c "echo -e y | docker image prune" &&
docker image ls
export https_proxy=http://127.0.0.1:7890;export http_proxy=http://127.0.0.1:7890;export all_proxy=socks5://127.0.0.1:7890 &&
docker push reechand/xarclock

Tag summary

Content type

Image

Digest

sha256:891ec3bdf…

Size

146.3 MB

Last updated

almost 3 years ago

docker pull reechand/xarclock