作者s9209122222 (海海海)
看板Linux
标题[问题] Docker GUI 程式开启问题
时间Sat May 9 16:00:15 2020
照着网路上的教学,我用以下指令在 docker 内成功执行 firefox:
docker run -h myFedora -t --net=host -e DISPLAY -d --privileged --name myFedora fedora /sbin/init
docker exec -it myFedora bash
但我执行 firefox 後发现他的设定全都和我 host 上面是共用的,
container 不是应该要隔开吗?
另外想请问有办法直接在 container 内直接运行整个桌面吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.35.210.216 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1589011217.A.540.html
1F:→ s9209122222: 结果我关掉原本的 firefox 就可以了,但是 firefox 05/09 16:03
2F:→ s9209122222: 会一直跳出页面错误…… 05/09 16:04
3F:→ s9209122222: 结果发现只有全萤幕会这样,视窗模式就不会…… 05/09 16:07
4F:→ s9209122222: 结果点进去页面也是一样常常挂掉…… 05/09 16:23
5F:→ s9209122222: 每次 systemd 都只有第一次 run 能用,重看就不行了 05/09 22:55
6F:→ s9209122222: 就算 dockerfile 内改 SIGRTMIN+3 也一样 05/09 22:58
7F:→ s9209122222: 不过不纠结 systemd 的话倒是成功开启硬解和声音输出 05/09 23:01
8F:→ s9209122222: 了,至少能看影片 05/09 23:01
9F:→ holishing: 所以你下了什麽参数,造成设定是共用的? 05/10 21:25
10F:→ s9209122222: 我也不知道,但关掉原本的 firefox 就不会共用了 05/10 23:40
11F:→ s9209122222: 但进 YouTube 看影片就会 crash 05/10 23:40
12F:推 froce: firefox放影片预设要gpu加速,试试看关掉 05/10 23:56
13F:→ s9209122222: 下次试试,不过 mpv 硬解和渲染都没问题的说 05/11 00:52
用 gdb 出现了这样的错误
Thread 3 "Gecko_IOThread" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7fffed3d1700 (LWP 1354)]
__libc_sendmsg (flags=64, msg=0x7fffed3cc640, fd=134) at ../sysdeps/unix/sysv/linux/sendmsg.c:28
28 ../sysdeps/unix/sysv/linux/sendmsg.c: No such file or directory.
※ 编辑: s9209122222 (114.35.210.216 台湾), 05/13/2020 00:38:18
14F:推 Bencrie: subprocess 死去。这些资讯只能跟你说他在写 socket 的 05/13 00:48
15F:→ Bencrie: 时候死的。实际的死因你要查别的 process 05/13 00:49