docker-wine-linux icon indicating copy to clipboard operation
docker-wine-linux copied to clipboard

安装停在tzdata这一步就不进行下去了

Open redguardtoo opened this issue 5 years ago • 11 comments

image

我用Debian

redguardtoo avatar Apr 27 '20 10:04 redguardtoo

分析发现问题可能是在连接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查看我的更改.

Leegenux avatar Apr 29 '20 04:04 Leegenux

能不能给run.sh加个语言的参数?

redguardtoo avatar Apr 29 '20 06:04 redguardtoo

分析发现问题可能是在连接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吗 还是不会用

Luo-Zhongwei avatar May 05 '20 07:05 Luo-Zhongwei

设一下环境变量 DEBIAN_FRONTEND=noninteractive就可以了。

redguardtoo avatar May 05 '20 12:05 redguardtoo

谷歌拼音输入法中文显示不了...

liguobao avatar May 08 '20 02:05 liguobao

这个环境变量加哪里可以用

xe5700 avatar May 18 '20 03:05 xe5700

请问问题解决了吗?

vayneli avatar Jun 10 '20 15:06 vayneli

分析发现问题可能是在连接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查看我的更改.

这个有用,我试了可以

JimmyYanDev avatar Aug 12 '20 02:08 JimmyYanDev

  1. 修改Dockerfile为作者发布的内容(与原内容比仅多了2行内容, 看一看就懂了)
  2. 在项目根目录下新建一个install.sh文件
  3. install.sh的内容设置为 apt-get install -y tzdata

lunzilunzi avatar Sep 26 '20 18:09 lunzilunzi

很奇怪,最新版本中,tzdata还是会卡: 如提问者指出,在Dockerfile中加入这样一行:

ENV DEBIAN_FRONTEND=noninteractive

可以解决问题

Leegenux avatar Oct 14 '20 04:10 Leegenux

由于默认的镜像源慢得让人怀疑人生,所以有必要更换成国内的镜像源。

在Dockerfile中添加

RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean

ghldiy avatar Feb 11 '22 16:02 ghldiy