Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
使用docker跑wine来玩游戏
deepin Talks
4392
views ·
2
replies ·
To
floor
Go
justforlxz
deepin
2016-10-02 11:41
Author
本帖最后由 kirigaya 于 2016-10-2 03:51 编辑
先放两张图。
其实上次见linux游戏吧主考虑docker打包的时候,我就想直接让wine跑在docker里的,但是那时候没有想太多,也没付出行动,今天,确切说是昨天,和基友在聊天的时候谈到docker了,然后我就想起来这个事,刚好自己也在打空轨,就试了一下。
需要自己备游戏,我使用的是空之轨迹fc豪华版。
docker run --rm --volume /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/kirigaya/game/ED6_FC:/home/docker/game/ED6_FC wine wine "/home/docker/game/ED6_FC/main.exe"
Copy the Code
FROM ubuntu:16.04
RUN useradd -m -g users docker
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN dpkg --add-architecture i386
RUN apt update
RUN apt install --no-install-recommends --assume-yes software-properties-common
RUN add-apt-repository ppa:wine/wine-builds
RUN apt update
RUN apt install --no-install-recommends --assume-yes winehq-staging winetricks
ENV DISPLAY :0
RUN mkdir /home/docker/game && mkdir /home/docker/game/ED6_FC
RUN chown -R docker /home/docker/game
WORKDIR /home/docker/game/ED6_FC
USER docker
RUN winetricks d3dxof
Copy the Code
Reply
Like 0
Favorite
View the author
All Replies
rekols
deepin
2016-10-02 20:12
#1
吊炸天。
Reply
Like 0
View the author
justforlxz
deepin
2016-10-02 20:44
#2
https://bbs.deepin.org/post/44202
吊炸天。
然而不能用主机的驱动,所以性能很低,跑游戏还不太好,但是封装程序是没问题的。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
先放两张图。
其实上次见linux游戏吧主考虑docker打包的时候,我就想直接让wine跑在docker里的,但是那时候没有想太多,也没付出行动,今天,确切说是昨天,和基友在聊天的时候谈到docker了,然后我就想起来这个事,刚好自己也在打空轨,就试了一下。
需要自己备游戏,我使用的是空之轨迹fc豪华版。