xhost + && X=/tmp/.X11-unix && docker run --rm -it -v $X:$X -e DISPLAY=:0 reechand/xarclock xarclock
由以上命令可知,我们采用的是linux宿主机上的X服务器
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
Content type
Image
Digest
sha256:891ec3bdf…
Size
146.3 MB
Last updated
almost 3 years ago
docker pull reechand/xarclock