Comments (11)
很奇怪,最新版本中,tzdata还是会卡:
如提问者指出,在Dockerfile中加入这样一行:
ENV DEBIAN_FRONTEND=noninteractive
可以解决问题
from docker-wine-linux.
由于默认的镜像源慢得让人怀疑人生,所以有必要更换成国内的镜像源。
在Dockerfile中添加
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
from docker-wine-linux.
分析发现问题可能是在连接docker运行命令的时候,docker不接受键盘输入。
可以考虑考虑提前配置并安装tzdata
,使用如下Dockerfile。
#This Dockerfile uses the ubuntu image
#Author: Rokas_Urbelis
#Email : [email protected]
#Blog : https://blog.linux-code.com
FROM ubuntu:latest
MAINTAINER RokasUrbelis(Based on github deepin-wine-ubuntu project)
COPY install.sh deepin-wine-ubuntu/install.sh
ADD deepin-wine-ubuntu /root/deepin-wine-ubuntu
COPY link.sh /root/
COPY deb/ /root/deepin-wine-ubuntu/
#COPY sources.list /etc/apt/
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y
RUN apt-get clean && apt-get autoclean
ENV LC_CTYPE=zh_CN.UTF-8 \
XMODIFIERS="@im=fcitx"
RUN \
locale-gen en_US.UTF-8 zh_CN.UTF-8 \
zh_CN.GBK && \
update-locale LANG=zh_CN.UTF-8
# Define default command.
RUN yes|bash /root/deepin-wine-ubuntu/install.sh
#RUN cd && ln -s /opt/deepin-wine-ubuntu/app/* .
RUN /bin/bash /root/link.sh && rm -f /root/link.sh
RUN rm -rf /root/deepin-wine-ubuntu
WORKDIR /root
CMD ["/bin/bash"]
可以在Dockerfile放好之后用git diff
查看我的更改.
from docker-wine-linux.
能不能给run.sh加个语言的参数?
from docker-wine-linux.
分析发现问题可能是在连接docker运行命令的时候,docker不接受键盘输入。
可以考虑考虑提前配置并安装tzdata
,使用如下Dockerfile。#This Dockerfile uses the ubuntu image #Author: Rokas_Urbelis #Email : [email protected] #Blog : https://blog.linux-code.com FROM ubuntu:latest MAINTAINER RokasUrbelis(Based on github deepin-wine-ubuntu project) COPY install.sh deepin-wine-ubuntu/install.sh ADD deepin-wine-ubuntu /root/deepin-wine-ubuntu COPY link.sh /root/ COPY deb/ /root/deepin-wine-ubuntu/ #COPY sources.list /etc/apt/ RUN rm -rf /var/lib/apt/lists/* RUN apt-get update RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y RUN apt-get clean && apt-get autoclean ENV LC_CTYPE=zh_CN.UTF-8 \ XMODIFIERS="@im=fcitx" RUN \ locale-gen en_US.UTF-8 zh_CN.UTF-8 \ zh_CN.GBK && \ update-locale LANG=zh_CN.UTF-8 # Define default command. RUN yes|bash /root/deepin-wine-ubuntu/install.sh #RUN cd && ln -s /opt/deepin-wine-ubuntu/app/* . RUN /bin/bash /root/link.sh && rm -f /root/link.sh RUN rm -rf /root/deepin-wine-ubuntu WORKDIR /root CMD ["/bin/bash"]
可以在Dockerfile放好之后用
git diff
查看我的更改.
你好,能大概说一下怎么用这个dockerfile吗 还是不会用
from docker-wine-linux.
设一下环境变量 DEBIAN_FRONTEND=noninteractive
就可以了。
from docker-wine-linux.
谷歌拼音输入法中文显示不了...
from docker-wine-linux.
这个环境变量加哪里可以用
from docker-wine-linux.
请问问题解决了吗?
from docker-wine-linux.
分析发现问题可能是在连接docker运行命令的时候,docker不接受键盘输入。
可以考虑考虑提前配置并安装tzdata
,使用如下Dockerfile。#This Dockerfile uses the ubuntu image #Author: Rokas_Urbelis #Email : [email protected] #Blog : https://blog.linux-code.com FROM ubuntu:latest MAINTAINER RokasUrbelis(Based on github deepin-wine-ubuntu project) COPY install.sh deepin-wine-ubuntu/install.sh ADD deepin-wine-ubuntu /root/deepin-wine-ubuntu COPY link.sh /root/ COPY deb/ /root/deepin-wine-ubuntu/ #COPY sources.list /etc/apt/ RUN rm -rf /var/lib/apt/lists/* RUN apt-get update RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y RUN apt-get clean && apt-get autoclean ENV LC_CTYPE=zh_CN.UTF-8 \ XMODIFIERS="@im=fcitx" RUN \ locale-gen en_US.UTF-8 zh_CN.UTF-8 \ zh_CN.GBK && \ update-locale LANG=zh_CN.UTF-8 # Define default command. RUN yes|bash /root/deepin-wine-ubuntu/install.sh #RUN cd && ln -s /opt/deepin-wine-ubuntu/app/* . RUN /bin/bash /root/link.sh && rm -f /root/link.sh RUN rm -rf /root/deepin-wine-ubuntu WORKDIR /root CMD ["/bin/bash"]
可以在Dockerfile放好之后用
git diff
查看我的更改.
这个有用,我试了可以
from docker-wine-linux.
- 修改Dockerfile为作者发布的内容(与原内容比仅多了2行内容, 看一看就懂了)
- 在项目根目录下新建一个install.sh文件
- install.sh的内容设置为
apt-get install -y tzdata
from docker-wine-linux.
Related Issues (20)
- error run bash.sh
- run.sh执行到第七步出错 HOT 1
- run.sh卡在地域选择模块 HOT 2
- Can I use this way to run other non-wine tools, say, easyconnect?
- Faied to run 'bash run.sh'. HOT 3
- yes|bash /root/deepin-wine-ubuntu/install.sh时出错 HOT 1
- Configuring tzdata sleep ... HOT 2
- WeChat: No such file or directory
- 微信版本更新添加浮窗功能
- WeChat无法打开 QQ无法输入中文
- 这个可以有~ HOT 2
- 能不能加入VNC或者远程桌面? HOT 1
- 阿里源似乎不再更新 HOT 1
- 可以整合钉钉吗? HOT 2
- 安装时软件包版本冲突
- 11
- 安装时在时区选择卡住 HOT 6
- docker build镜像时网络错误 HOT 3
- 登录超时
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-wine-linux.