ssh-keygen
cd ~/.ssh/
chmod 600 authorized_keys
docker network ls
docker network create --subnet=172.18.0.0/16 mynetwork
docker run --network mynetwork --ip 172.18.0.2 --name p1 -itd -e ID_PUB="$(cat ~/.ssh/id_rsa.pub)" hebo2019/pycharm
ssh -X root@172.18.0.2 pycharm
即可!
地址:https://hub.docker.com/r/hebo2019/pycharm
报错:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
不影响启动软件
Windows桌面安装xmanger
参考网址:
Docker运行GUI软件的方法:
https://www.cnblogs.com/jcchen1987/p/10553930.html
Docker自定义网络和运行时指定IP: