标签:vim splay 需要 acs dev http cas isp run
sudo apt-get install x11-xserver-utils
xhost +
-v /tmp/.X11-unix:/tmp/.X11-unix `# gui程序需要`-e DISPLAY=$DISPLAY
docker run -itd -v ~:/home/john `# 默认工作目录,映射` -v /usrlocal/git:/home/john/git `# git仓库目录` -p 8001:8001 `# 日志仓库,预览服务` -p 8080:8080 `# web程序调试端口` -w /home/john `# 默认工作目录` -v /etc/localtime:/etc/localtime:ro `# 当地时间` -v /tmp/.X11-unix:/tmp/.X11-unix `# gui程序需要`-e DISPLAY=$DISPLAY --name devenv-vim `# 容器名字` jiftle/devenv-vim:V1.0.0.B.6_191208 bash
sudo apt-get install xarclock
xarclock
-v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
docker run -ti --rm -v $(‘pwd‘):/mnt/workspace -v /etc/localtime:/etc/localtime:ro -v ~/.ssh/id_rsa:${HOME}/.ssh/id_rsa:ro -v ~/.gnupg:${HOME}/.gnupg -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
-v /tmp/.X11-unix:/tmp/.X11-unix -v /etc/machine-id:/etc/machine-id:ro -e DISPLAY=$DISPLAY -e TZ=UA --name spacemacs jare/spacemacs
标签:vim splay 需要 acs dev http cas isp run
原文地址:https://www.cnblogs.com/jiftle/p/13584725.html