Code Monkey home page Code Monkey logo

Comments (11)

Leegenux avatar Leegenux commented on June 2, 2024 7

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

ENV DEBIAN_FRONTEND=noninteractive

可以解决问题

from docker-wine-linux.

ghldiy avatar ghldiy commented on June 2, 2024 1

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

在Dockerfile中添加

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

from docker-wine-linux.

Leegenux avatar Leegenux commented on June 2, 2024

分析发现问题可能是在连接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.

redguardtoo avatar redguardtoo commented on June 2, 2024

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

from docker-wine-linux.

resplendent-star avatar resplendent-star commented on June 2, 2024

分析发现问题可能是在连接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.

redguardtoo avatar redguardtoo commented on June 2, 2024

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

from docker-wine-linux.

liguobao avatar liguobao commented on June 2, 2024

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

from docker-wine-linux.

xe5700 avatar xe5700 commented on June 2, 2024

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

from docker-wine-linux.

vayneli avatar vayneli commented on June 2, 2024

请问问题解决了吗?

from docker-wine-linux.

JimmyYanDev avatar JimmyYanDev commented on June 2, 2024

分析发现问题可能是在连接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.

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

from docker-wine-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.