GithubHelp home page GithubHelp logo

dockerfile-x11docker-deepin's People

Contributors

mviereck avatar yjqg6666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dockerfile-x11docker-deepin's Issues

[Solved] The method of extending fcitx with the fcitx-cloudpinyin module for the deepin base image.

I've solved the problem. Both of the following methods can do the trick.

  1. Install the fcitx-module-cloudpinyin package shipped in the deepin repo.

  2. Compile the module based on its latest git master source code as following.

$ sudo apt install build-essential cmake fcitx-libs-dev libcurl4-openssl-dev
$ git clone https://github.com/fcitx/fcitx-cloudpinyin.git fcitx/fcitx-cloudpinyin.git
$ cd fcitx/fcitx-cloudpinyin.git/
$ mkdir build
$ cd build/
$ cmake ..
$ make
$ sudo cp src/fcitx-cloudpinyin.so /usr/lib/x86_64-linux-gnu/fcitx/

Run the self-built x11docker-deepin-wechat image will clear the ip address of dorker0.

Hi,

With a customized Dockerfile, I've built the x11docker-deepin-wechat image. See following for the relative info:

The content of the Dockerfile:

$ egrep -v '^(#|$)' Dockerfile 
FROM x11docker/deepin
RUN echo "deb http://packages.deepin.com/deepin/ lion main non-free contrib" > /etc/apt/sources.list
RUN env DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && apt-get update
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    deepin-wine deepin-wine32 deepin-wine32-preloader deepin-wine-helper deepin-wine-uninstaller
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y deepin.com.wechat

The docker image is built by the followng command from the directory where it's located:

$ docker build -t x11docker-deepin-wechat .
Sending build context to Docker daemon  3.072kB
Step 1/5 : FROM x11docker/deepin
 ---> 7458578247ea
Step 2/5 : RUN echo "deb http://packages.deepin.com/deepin/ lion main non-free contrib" > /etc/apt/sources.list
 ---> Using cache
 ---> 8bc7cbf52f9e
Step 3/5 : RUN env DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && apt-get update
 ---> Using cache
 ---> 9d6f364d92e4
Step 4/5 : RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y     deepin-wine deepin-wine32 deepin-wine32-preloader deepin-wine-helper deepin-wine-uninstaller
 ---> Using cache
 ---> 40f6985a8d52
Step 5/5 : RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y deepin.com.wechat
 ---> Using cache
 ---> 927dabd09f28
Successfully built 927dabd09f28
Successfully tagged x11docker-deepin-wechat:latest

Then I try to start the docker container, but find it will clear the IP address of dorker0 and as a result, the WeChat will fail to connect. See the following testing steps and output for more info.

In terminal 1:
$ ip addr show docker0 
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:69:02:48:8c brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:69ff:fe02:488c/64 scope link 
       valid_lft forever preferred_lft forever
In terminal 2:
$ x11docker --sudouser  --clipboard --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker-deepin-wechat

or
$ x11docker --sudouser --xpra --clipboard --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker-deepin-wechat 

or
$ x11docker --sudouser --xpra-xwayland --clipboard --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker-deepin-wechat

And either of the followng options will cause the X11 display to fail:

--hostdisplay | --nxagent 

In terminal 1:
$ ip addr show docker0 
5: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:69:02:48:8c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::42:69ff:fe02:488c/64 scope link 
       valid_lft forever preferred_lft forever

Any hints for this problem?

Regards,
HY

Two strange problems: the ip address disappear on docker0 interface and missing gateway of bridge network.

Run x11docker in desktop mode as below will trigger the problem:

$ x11docker --sudouser -c --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- hongyi-zhao/deepin-wine startdde

The hongyi-zhao/deepin-wine image is created by the following command with this Dockerfile:

$ docker build --network host -f Dockerfiles/deepin-wine . -t hongyi-zhao/deepin-wine

See my detailed notes in the above Dockerfile for more info.

For this case, even I add the correct IP address to docker0 interface again as below, the proxy listening on 172.17.0.1 still can't be accessed from within docker container, but it can be accessed from the host:

# Re add the correct IP address on docker0 interface:
$ sudo ip addr add 172.17.0.1/16 dev docker0

werner@X10DAi:~$ curl -vIx socks5://172.17.0.1:18888 www.baidu.com
*   Trying 172.17.0.1:18888...
* TCP_NODELAY set
* SOCKS5 communication to www.baidu.com:80
* SOCKS5 connect to IPv4 220.181.38.149:80 (locally resolved)
* SOCKS5 request granted.
* Connected to 172.17.0.1 (172.17.0.1) port 18888 (#0)
> HEAD / HTTP/1.1
> Host: www.baidu.com
> User-Agent: curl/7.68.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Connection: keep-alive
Connection: keep-alive
< Content-Length: 277
Content-Length: 277
< Content-Type: text/html
Content-Type: text/html
< Date: Tue, 10 Nov 2020 08:01:30 GMT
Date: Tue, 10 Nov 2020 08:01:30 GMT
< Etag: "575e1f6f-115"
Etag: "575e1f6f-115"
< Last-Modified: Mon, 13 Jun 2016 02:50:23 GMT
Last-Modified: Mon, 13 Jun 2016 02:50:23 GMT
< Pragma: no-cache
Pragma: no-cache
< Server: bfe/1.0.8.18
Server: bfe/1.0.8.18

< 
* Connection #0 to host 172.17.0.1 left intact


werner@27baae044a25:~/Desktop$ curl -vIx socks5://172.17.0.1:18888 www.baidu.com
* Rebuilt URL to: www.baidu.com/
*   Trying 172.17.0.1...
* TCP_NODELAY set
* SOCKS5 communication to www.baidu.com:80
* Unable to receive initial SOCKS5 response.
* Closing connection 0
curl: (7) Unable to receive initial SOCKS5 response.

If running with --hostnet option, the proxy will be available both from host and container, i.e., like the following:

$ x11docker --sudouser -c --hostnet --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- hongyi-zhao/deepin-wine startdde

In this case, all the following proxies are accessible from within container/host:

192.168.0.6:18888 # The host network ethernet card interface IP address.
127.0.0.1:18888     # In --hostnet mode, this is the lo interface of the host.
172.17.0.1:18888   # The IP address of the docker0 interface.

This maybe a bug of docker itself. Anyway, currently, the following method can be used as an expediency:

while :; do
  if ! ip a show docker0 | grep -qE '^[ ]*inet 172\.17\.0\.1/16'; then
    sudo ip addr add 172.17.0.1/16 dev docker0
    sleep 1
  fi
done

But this method can't solve the missing gateway problem of bridge network as shown below:

$ docker network inspect bridge | grep -A3 -i '"Config":'
            "Config": [
                {
                    "Subnet": "172.17.0.0/16"
                }

I want to know whether there are some methods for me to revise/add gateway to the bridge without restarting the docker service like the following:

$ sudo systemctl restart docker

Regards,
HY

Extending the x11docker/deepin image by 'sudo apt-get install pkg1 [pkg2 ...]'.

Hi,

Suppose I've started the x11docker/deepin docker image as following:

$ x11docker --desktop --sudouser --clipboard --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker/deepin

Then, in the x11docker/deepin docker image, can I run the following command to add pkgs, instead of using the method mentioned here?

$ sudo apt-get install pkg1 [pkg2 ...]

Regards,
HY

Setting chinese keyboard layout fails

Attemps to change the keyboard layout to Chinese fail.
It defaults to US english keymap.

Setting the language locale with x11docker option --lang=zh_cn works.

Changing the keyboard layout with x11docker option --keymap=cn fails.
Changing the keyboard layout with deepin settings fails, too.
Found so far:

  • adding German keyboard layout in deepin settings works.
  • switching between German and English keyboard layout with keys super+space works.
  • adding Chinese keyboard layout in deepin settings works.
  • failure: switching to Chinese keyboard layout with keys super+space enables English keymap instead of Chinese.

In general it is possible to enable Chinese input with fcitx-pinyin, success here: mviereck/x11docker#269 (comment)

If someone has an idea how to fix this, I'd be happy to hear it.

Disscussion on the environment variables setting of fcitx5 once more.

I noticed the notes given here about the environment variables setting of fcitx5 as shown below:

wayland: ~/.pam_environment

GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
XMODIFIERS="@im=fcitx5"

x11: ~/.xprofile

export GTK_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5
export QT_IM_MODULE=fcitx5
fcitx5 &

As you can see, the above settings will trigger the starting of fcitx5 for the x11 case in the ~/.xprofile but for the wayland case doesn't. I'm very confused on this. Any hints?

Regards,
HY

Failed to create x11docker/deepin image from scratch.

The Dockerfile is expanded with bestwu/docker-deepin based on mviereck/dockerfile-x11docker-deepin as shown below:

#https://github.com/mviereck/dockerfile-x11docker-deepin/blob/master/Dockerfile
# x11docker/deepin
# 
# Run deepin desktop in a Docker container. 
# Use x11docker to run image: 
#   https://github.com/mviereck/x11docker 
#
# Run deepin desktop with:
#   x11docker --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker/deepin
#
# Run single application:
#   x11docker x11docker/deepin deepin-terminal
#
# Options:

# Persistent home folder stored on host with   --home
# Share host file or folder with option        --share PATH
# Hardware acceleration with option            --gpu
# Clipboard sharing with option                --clipboard
# Language locale setting with option          --lang [=$LANG]
# Sound support with option                    --pulseaudio
# Printer support with option                  --printer
# Webcam support with option                   --webcam
#
# See x11docker --help for further options.


#https://github.com/bestwu/docker-deepin/blob/master/amd64/Dockerfile
FROM debian

ENV DEBIAN_FRONTEND=noninteractive

COPY stable /usr/share/debootstrap/scripts/lion
COPY deepin-archive-keyring.gpg /usr/share/keyrings/deepin-archive-keyring.gpg
COPY deepin-pools-keyring.gpg /root/deepin-pools-keyring.gpg
RUN apt-get update && apt-get install -y debootstrap && \
    debootstrap --variant=minbase --no-check-gpg --arch=amd64 lion rootfs http://packages.deepin.com/deepin/ && \
    cp /usr/share/keyrings/deepin-archive-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ && \
    cp /root/deepin-pools-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ && \
    chroot ./rootfs apt-get autoclean && \
    chroot ./rootfs apt-get clean && \
    chroot ./rootfs rm -rvf /usr/share/icons/Adwaita && \
    chroot ./rootfs find /var/lib/apt/lists -type f -delete && \
    chroot ./rootfs find /var/cache -type f -delete && \
    chroot ./rootfs find /var/log -type f -delete && \
    chroot ./rootfs find /usr/share/doc -type f -delete && \
    chroot ./rootfs find /usr/share/man -type f -delete && \
    chroot ./rootfs find /usr/share/locale -type f -delete

FROM scratch
LABEL maintainer='Peter Wu <[email protected]>'
COPY --from=0 /rootfs /

ENV TERM=xterm \
    DEBIAN_FRONTEND=noninteractive \
    LANG=en_US.utf8 \
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin

RUN rm /bin/sh && \
    ln -s /bin/bash /bin/sh && \
    sed -i "s/mesg n/tty -s \&\& mesg n/" /root/.profile && \
    apt-get update && \
    apt --fix-broken -y install && \
    apt-get -y autoremove --purge && apt-get autoclean -y && apt-get clean -y && \
    find /var/lib/apt/lists -type f -delete && \
    find /var/cache -type f -delete && \
    find /var/log -type f -delete && \
    find /usr/share/doc -type f -delete && \
    find /usr/share/man -type f -delete
    
#CMD ["/bin/bash"]



ENV LANG en_US.utf8
ENV PATH /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games

# choose a mirror
#RUN echo "deb http://packages.deepin.com/deepin/ lion main non-free contrib" > /etc/apt/sources.list
RUN echo "deb http://mirrors.kernel.org/deepin/  lion main non-free contrib" > /etc/apt/sources.list
#RUN echo "deb http://ftp.fau.de/deepin/          lion main non-free contrib" > /etc/apt/sources.list

# basics
RUN rm -rf /var/lib/apt/lists/* && \
    apt-get clean && \
    apt-get update && \
    apt-mark hold iptables && \
    apt-get dist-upgrade -y && \
    apt-get -y autoremove && \
    apt-get clean && \
env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    dbus-x11 \
    libxv1 \
    locales-all \
    mesa-utils \
    mesa-utils-extra \
    procps \
    psmisc

# deepin desktop
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    dde \
    at-spi2-core \
    gnome-themes-standard \
    gtk2-engines-murrine \
    gtk2-engines-pixbuf \
    pciutils

# additional applications
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    deepin-calculator \
    deepin-image-viewer \
    deepin-screenshot \
    deepin-system-monitor \
    deepin-terminal \
    deepin-movie \
    gedit \
    oneko \
    sudo \
    synaptic

# chinese fonts
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    fonts-arphic-uming

#CMD ["startdde"]

The docker image creation was failed with the following error:

$ docker build -t x11docker-deepin-wechat .
Sending build context to Docker daemon  8.192kB
Step 1/18 : FROM debian
 ---> 1510e8501783
Step 2/18 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> fa8526b361d0
Step 3/18 : COPY stable /usr/share/debootstrap/scripts/lion
COPY failed: stat /var/lib/docker/tmp/docker-builder340380750/stable: no such file or directory

How to fix/solve the problem?

Regards,
HY

Building the deepin apricot docker image in an elegant way.

Deepin has just released the latest version, codenamed as apricot. So, I try to build the docker image for this release from scratch using the following Dockerfile.

#https://github.com/bestwu/docker-deepin/blob/master/amd64/Dockerfile
FROM debian

ENV DEBIAN_FRONTEND=noninteractive

COPY stable /usr/share/debootstrap/scripts/apricot
COPY deepin-archive-keyring.gpg /usr/share/keyrings/deepin-archive-keyring.gpg
COPY deepin-pools-keyring.gpg /root/deepin-pools-keyring.gpg
RUN apt-get update && apt-get install -y debootstrap && \
    debootstrap --variant=minbase --no-check-gpg --arch=amd64 apricot rootfs http://community-packages.deepin.com/deepin/ && \
    cp /usr/share/keyrings/deepin-archive-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ && \
    cp /root/deepin-pools-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ && \
    chroot ./rootfs apt-get autoclean && \
    chroot ./rootfs apt-get clean

FROM scratch
LABEL maintainer='Hongyi Zhao <[email protected]>'
COPY --from=0 /rootfs /

ENV TERM=xterm \
    DEBIAN_FRONTEND=noninteractive \
    LANG=en_US.utf8 \
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin

RUN rm /bin/sh && \
    ln -s /bin/bash /bin/sh && \
    sed -i "s/mesg n/tty -s \&\& mesg n/" /root/.profile && \
    apt-get update && \
    apt --fix-broken -y install && \
    apt-get -y autoremove --purge && apt-get autoclean -y && apt-get clean -y
    
#CMD ["/bin/bash"]


ENV LANG en_US.utf8
ENV PATH /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games

# choose a mirror
RUN echo "deb http://community-packages.deepin.com/deepin/ apricot main non-free contrib" > /etc/apt/sources.list

# basics
RUN rm -rf /var/lib/apt/lists/* && \
    apt-get clean && \
    apt-get update && \
    apt-mark hold iptables && \
    apt-get dist-upgrade -y && \
    apt-get -y autoremove && \
    apt-get clean && \
env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    dbus-x11 \
    libxv1 \
    locales-all \
    mesa-utils \
    mesa-utils-extra \
    procps \
    psmisc

# deepin desktop
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    dde \
    at-spi2-core \
    gnome-themes-standard \
    gtk2-engines-murrine \
    gtk2-engines-pixbuf \
    pciutils

# additional applications
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    deepin-calculator \
    deepin-image-viewer \
    deepin-screenshot \
    deepin-system-monitor \
    deepin-terminal \
    deepin-movie \
    gedit \
    oneko \
    sudo \
    synaptic \
    apt-transport-https

# chinese fonts
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    xfonts-wqy fonts-wqy-microhei fonts-wqy-zenhei

But I can't succeed. See below for the detailed error messages.

$ docker build --network host -f Dockerfiles/apricot . -t hongyi-zhao/deepin-apricot
Sending build context to Docker daemon  33.79kB
Step 1/18 : FROM debian
 ---> 1510e8501783
Step 2/18 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> a4e0f4317265
Step 3/18 : COPY stable /usr/share/debootstrap/scripts/apricot
 ---> Using cache
 ---> aba183a348b5
Step 4/18 : COPY deepin-archive-keyring.gpg /usr/share/keyrings/deepin-archive-keyring.gpg
 ---> Using cache
 ---> aeb2d53ce429
Step 5/18 : COPY deepin-pools-keyring.gpg /root/deepin-pools-keyring.gpg
 ---> Using cache
 ---> 7a0c347b6974
Step 6/18 : RUN apt-get update && apt-get install -y debootstrap &&     debootstrap --variant=minbase --no-check-gpg --arch=amd64 apricot rootfs http://community-packages.deepin.com/deepin/ &&     cp /usr/share/keyrings/deepin-archive-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ &&     cp /root/deepin-pools-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ &&     chroot ./rootfs apt-get autoclean &&     chroot ./rootfs apt-get clean
 ---> Using cache
 ---> 860074a5eade
Step 7/18 : FROM scratch
 ---> 
Step 8/18 : LABEL maintainer='Hongyi Zhao <[email protected]>'
 ---> Using cache
 ---> a4ef154ea578
Step 9/18 : COPY --from=0 /rootfs /
 ---> Using cache
 ---> 2adb0add1c02
Step 10/18 : ENV TERM=xterm     DEBIAN_FRONTEND=noninteractive     LANG=en_US.utf8     PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
 ---> Using cache
 ---> e38f4e44bd99
Step 11/18 : RUN rm /bin/sh &&     ln -s /bin/bash /bin/sh &&     sed -i "s/mesg n/tty -s \&\& mesg n/" /root/.profile &&     apt-get update &&     apt --fix-broken -y install &&     apt-get -y autoremove --purge && apt-get autoclean -y && apt-get clean -y
 ---> Running in 501cb2d0a19e
Ign:1 https://community-packages.deepin.com/deepin apricot InRelease
Err:2 https://community-packages.deepin.com/deepin apricot Release
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 172.17.0.1 8080]
Reading package lists...
W: http://community-packages.deepin.com/deepin/dists/apricot/InRelease: No system certificates available. Try installing ca-certificates.
W: http://community-packages.deepin.com/deepin/dists/apricot/Release: No system certificates available. Try installing ca-certificates.
E: The repository 'http://community-packages.deepin.com/deepin apricot Release' no longer has a Release file.
The command '/bin/sh -c rm /bin/sh &&     ln -s /bin/bash /bin/sh &&     sed -i "s/mesg n/tty -s \&\& mesg n/" /root/.profile &&     apt-get update &&     apt --fix-broken -y install &&     apt-get -y autoremove --purge && apt-get autoclean -y && apt-get clean -y' returned a non-zero code: 100

Any hints for fixing this problem?

Regards,
HY

The possible DNS problem for running 'sudo apt-get update' in deepin desktop docker container started by x11docker.

Hi,

First I start the deepin desktop docker container with x11docker as follows:

$ x11docker --desktop --sudouser --clipboard --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker/deepin

But I failed to run the following command in the docker container:

werner@f1d836161f10:~/Desktop$ sudo apt-get update

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for werner: 
Err:1 http://mirrors.kernel.org/deepin lion InRelease
  Temporary failure resolving 'mirrors.kernel.org'
Reading package lists... Done
W: Failed to fetch http://mirrors.kernel.org/deepin/dists/lion/InRelease  Temporary failure resolving 'mirrors.kernel.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

It seems like a DNS problem. Any hints for solving this problem?

Regards,
HY

The behaviour for combined using of "--homebasedir" and "--home" options of x11docker.

I tried to start the container as below:

$ x11docker --homebasedir $HOME --home=x11docker --sudouser -c --desktop --init=systemd -- --cap-add=ALL --security-opt seccomp=unconfined -- hongyi-zhao/deepin-wine startdde

According to my understanding, the host folder $HOME/x11docker will appear in the container, but I don't see the target folder in the container.

Is there a problem with my understanding or usage?

Regards,
HY

The strange garbled Chinese character display problem for qq and fcitx-googlepinyin.

The fcitx-googlepinyin and qq are installed in the docker image for deepin apricot. See here for the detailed info.

But I noticed a very strange Chinese garbled code display problem for qq when uisng the fcitx-googlepinyin to input Chinese characters. The relevant areas are marked and numbered as shown on the following screenshot. As you can see, the input results on the region 2 are garbled, but they are displayed correct on other regions, say, 1 and 3.

image

WeChat does not have this problem. Any hints/comments/suggestions/fixes are highly appreciated.

Regards,
HY

Running the self-build wechat docker image in x11docker's single application mode via deepin-terminal.

The Dockerfile and the image build command are as follows:

$ docker build -t x11docker-deepin-wechat .

# The content of the Dockerfile:
FROM x11docker/deepin
RUN echo "deb http://mirrors.ustc.edu.cn/deepin/ lion main non-free contrib" > /etc/apt/sources.list
RUN env DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && apt-get update
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y git netcat socat haproxy gawk uuid curl lsb-release apt-utils \
    deepin-wine deepin-wine32 deepin-wine32-preloader deepin-wine-helper deepin-wine-uninstaller deepin.com.wechat

Start the docker image and then run wechat from dockerized deepin-terminal.

$ x11docker --sudouser --clipboard x11docker-deepin-wechat deepin-terminal

werner@1190984ca629:~$ /opt/deepinwine/apps/Deepin-WeChat/run.sh 
Run Deepin-WeChat 2.6.8.65deepin0 c:/Program Files/Tencent/WeChat/WeChat.exe
run Deepin-WeChat progress pid 
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
total 0
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 c: -> ../drive_c
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com1 -> /dev/ttyS0
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com10 -> /dev/ttyS9
lrwxrwxrwx 1 werner werner 11 Nov  8 21:31 com11 -> /dev/ttyS10
lrwxrwxrwx 1 werner werner 11 Nov  8 21:31 com12 -> /dev/ttyS11
lrwxrwxrwx 1 werner werner 11 Nov  8 21:31 com13 -> /dev/ttyS12
lrwxrwxrwx 1 werner werner 11 Nov  8 21:31 com14 -> /dev/ttyS13
lrwxrwxrwx 1 werner werner 11 Nov  8 21:31 com15 -> /dev/ttyS14
lrwxrwxrwx 1 werner werner 11 Nov  8 21:31 com16 -> /dev/ttyS15
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com2 -> /dev/ttyS1
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com3 -> /dev/ttyS2
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com4 -> /dev/ttyS3
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com5 -> /dev/ttyS4
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com6 -> /dev/ttyS5
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com7 -> /dev/ttyS6
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com8 -> /dev/ttyS7
lrwxrwxrwx 1 werner werner 10 Nov  8 21:31 com9 -> /dev/ttyS8
lrwxrwxrwx 1 werner werner  8 Nov  8 21:31 d:: -> /dev/sdb
lrwxrwxrwx 1 werner werner 17 Nov  8 21:31 e: -> /media/wayne/Ntfs
lrwxrwxrwx 1 werner werner  9 Nov  8 21:31 e:: -> /dev/sdb1
lrwxrwxrwx 1 werner werner 12 Nov  8 21:31 y: -> /home/werner
lrwxrwxrwx 1 werner werner  1 Nov  8 21:31 z: -> /
CallApp Deepin-WeChat c:/Program Files/Tencent/WeChat/WeChat.exe
Disable auto update
rm: cannot remove '/home/werner/.deepinwine/Deepin-WeChat/drive_c/users/werner/Application Data/Tencent/WeChat/All Users/config/configEx.ini': No such file or directory
Sun Nov  8 21:31:20 CST 2020:kill WeChat.exe block
Sun Nov  8 21:31:20 CST 2020:No wine process found
/home/werner/.deepinwine/Deepin-WeChat/drive_c/Program Files/Tencent/WeChat
Starting process c:/Program Files/Tencent/WeChat/WeChat.exe ...
werner@1190984ca629:~$ X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  10
  Current serial number in output stream:  10

Any hints for this problem?

Regards,
HY

--home: some configuration in deepin control center is lost.

@hongyi-zhao wrote in #31:

According to my understanding, if I'm using --home without any argument, the ~/.local/share/x11docker/IMAGENAME will be used for persistent data storage. But based my testings, use this option can't let me use the previous settings at all. I'm not sure whether I've understood your meaning correctly.

You understand correctly.
But it seems some configurations in the deepin control center are lost nonetheless. I just tried with language and keyboard settings, they are lost. Other settings like e.g. "dark theme" and mouse cursor theme are stored.

Other things are stored, too, e.g. the application order in the application menu that shows the last used application on top. My fcitx configuration and my configuration of the file manager to show hidden files is stored, too.

I don't know how to fix this. Looks like a deepin bug.

The cleanup script will destroy the cache used by synaptic.

If I use the cleanup script after the apt-get update command in the last layer, I find it will destroy the cache used by synaptic, which will prohibit synaptic from start in the container. See the following screenshot for more info:

image

So I think that the operations done by the cleanup script are too aggressive.

x11docker ERROR: No container command specified and no CMD or ENTRYPOINT found in image.

The docker image is created with the Dockerfile using the following command in the repo's top level subdirectory:

$ docker build --network host -f Dockerfile/deepin . -t hongyi-zhao/deepin

But it can't be started. See following for more info:

$ x11docker --desktop --init=systemd --hostnet -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- hongyi-zhao/deepin
x11docker WARNING: User werner is member of group docker.
  That allows unprivileged processes on host to gain root privileges.

x11docker note: Using X server option --xephyr

x11docker note: Xephyr is a quite stable nested X server.
  Less stable, but resizeable is nxagent with option --nxagent.

x11docker WARNING: Option --hostnet severly degrades 
  container isolation. Network namespacing is disabled. 
  Container shares host network stack. Spying on network traffic may be possible. 
  Access to host X server :1 may be possible through abstract unix socket.

x11docker WARNING: Found custom DOCKER_RUN_OPTIONS.
  x11docker will add them to 'docker run' command without
  a serious check for validity or security. Found options:
   '--cap-add=IPC_LOCK' '--security-opt' 'seccomp=unconfined'

x11docker WARNING: Option --init=systemd slightly degrades container isolation.
  It adds some user switching capabilities x11docker would drop otherwise.
  However, they are still within default docker capabilities.
  Not within default docker capabilities it adds capability SYS_BOOT.  
  It shares access to host cgroups in /sys/fs/cgroup.
  Some processes in container will run as root.


x11docker ERROR: No container command specified and no CMD or ENTRYPOINT found in image.

  Type 'x11docker --help' for usage information
  Debug options: '--verbose' (full log) or '--debug' (log excerpt).
  Logfile will be: /home/werner/.cache/x11docker/x11docker.log
  Please report issues at https://github.com/mviereck/x11docker

But the docker image can be started smoothly as follows:

$ x11docker --desktop --init=systemd --hostnet -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- hongyi-zhao/deepin deepin-terminal

or

$ x11docker --init=systemd --hostnet -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- hongyi-zhao/deepin deepin-terminal

Why the x11docker designed this way when invoking docker?

Regards,
HY

Automate the deepin image building progress on Docker hub by writing a build hook script.

I try to extend the Deepin apricot base image with the automated builds service supplied by docker hub using customized build envionment variable. The auto building service is linked to and based on the Dockerfile in my github repo here. For convenience, I use a customized environment variable to define the CODENAME of deepin as shown below:

image

But I noticed that the automated builds service failed with the building log as follows:

Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '140.82.114.3' to the list of known hosts.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'19.03.8', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2020-03-11T01:24:30.000000000+00:00', u'ApiVersion': u'1.40', u'MinAPIVersion': u'1.12', u'GitCommit': u'afacb8b7f0', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.12.17'}}, {u'Version': u'1.2.13', u'Name': u'containerd', u'Details': {u'GitCommit': u'7ad184331fa3e55e52b890ea95e65ba581ae3429'}}, {u'Version': u'1.0.0-rc10', u'Name': u'runc', u'Details': {u'GitCommit': u'dc9208a3303feef5b3839f4323d9beb36df0a9dd'}}, {u'Version': u'0.18.0', u'Name': u'docker-init', u'Details': {u'GitCommit': u'fec3683'}}]
Arch: amd64
BuildTime: 2020-03-11T01:24:30.000000000+00:00
ApiVersion: 1.40
Platform: {u'Name': u'Docker Engine - Community'}
Version: 19.03.8
MinAPIVersion: 1.12
GitCommit: afacb8b7f0
Os: linux
GoVersion: go1.12.17
Starting build of index.docker.io/hongyizhao/deepin-wine:apricot...
Step 1/6 : ARG CODENAME
Step 2/6 : FROM hongyizhao/deepin:${CODENAME}
invalid reference format

Any hints for fixing this problem?

Regards,
HY

Can't disable the sudo's password.

I try to disable the password for current user in invoking sudo command but failed. See the following info shown in the deepin container started by x11docker.

werner@X10DAi:~/Desktop$ cat /etc/sudoers.d/nopasswd 
werner ALL=(ALL:ALL) NOPASSWD:ALL

werner@X10DAi:~/Desktop$ stat -c "%a" /etc/sudoers.d/nopasswd 
644
werner@X10DAi:~/Desktop$ sudo -i
[sudo] password for werner: 

The screenshot is shown below:

image

As you can see, I've created the /etc/sudoers.d/nopasswd for the current user, why still I need to input password when running sudo command?

Regards,
HY

Failed to run sudo command in the deepin desktop from the Docker container.

Hi,

I try to use the following command to run the deepin desktop in a Docker container:

$ x11docker --desktop --clipboard --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker/deepin

Then in the deepin desktop, I try to run sudo command but failed. See following for more info:

werner@e7353214c2aa:~/Desktop$ sudo apt-get update
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

Any hints for this problem?

Regards,
HY

Failed to extend deepin base image with deepin community repository.

The Dockerfile is as follows:

ARG CODENAME
FROM hongyizhao/deepin:${CODENAME}

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C30362C0A53D5BB && \
    echo "deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free"  > /etc/apt/sources.list && \
    echo "deb https://community-store-packages.deepin.com/appstore eagle appstore" > /etc/apt/sources.list.d/appstore.list && \
    apt-get update

RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y com.qq.weixin.deepin com.qq.im.deepin && apt-get clean
RUN cp /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop /usr/share/applications/ && \
    cp /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.im.deepin.desktop /usr/share/applications/

The build command and the error are shown as below:

$ docker build --network host -f Dockerfiles/deepin-wine -t hongyizhao/deepin-wine:apricot  --build-arg CODENAME="apricot" --build-arg http_proxy='' --build-arg https_proxy='' .
Sending build context to Docker daemon  52.74kB
Step 1/7 : ARG CODENAME
Step 2/7 : FROM hongyizhao/deepin:${CODENAME}
 ---> ddd9d1fa35c1
Step 3/7 : ENV DEEPIN_MIRROR=http://mirrors.ustc.edu.cn/deepin/
 ---> Running in 335cd95d8ae7
Removing intermediate container 335cd95d8ae7
 ---> 83e8817bbb9b
Step 4/7 : ENV DEEPIN_RELEASE=${CODENAME}
 ---> Running in 2d1480a11130
Removing intermediate container 2d1480a11130
 ---> e4920d034ffd
Step 5/7 : RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C30362C0A53D5BB &&     echo "deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free"  > /etc/apt/sources.list &&     echo "deb https://community-store-packages.deepin.com/appstore eagle appstore" > /etc/apt/sources.list.d/appstore.list &&     apt-get update
 ---> Running in 8700b4f9aaa8
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.89j0yYfODR/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 1C30362C0A53D5BB
gpg: key 1C30362C0A53D5BB: public key "appstore (appstore key) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Get:1 https://community-packages.deepin.com/deepin apricot InRelease [19.6 kB]
Get:2 https://community-store-packages.deepin.com/appstore eagle InRelease [5,283 B]
Ign:3 https://community-packages.deepin.com/deepin apricot/main amd64 Packages
Ign:4 https://community-packages.deepin.com/deepin apricot/contrib amd64 Packages
Ign:5 https://community-packages.deepin.com/deepin apricot/non-free amd64 Packages
Get:3 https://community-packages.deepin.com/deepin apricot/main amd64 Packages [18.1 MB]
Get:6 https://community-store-packages.deepin.com/appstore eagle/appstore amd64 Packages [627 kB]
Get:4 https://community-packages.deepin.com/deepin apricot/contrib amd64 Packages [103 kB]
Get:5 https://community-packages.deepin.com/deepin apricot/non-free amd64 Packages [207 kB]
E: lstat /lastore/override/desktop2uaid: no such file or directory
Fetched 19.0 MB in 2s (9,305 kB/s)
Reading package lists...
Removing intermediate container 8700b4f9aaa8
 ---> 46613b04107f
Step 6/7 : RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y com.qq.weixin.deepin com.qq.im.deepin && apt-get clean
 ---> Running in 23905c8b8677
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package com.qq.weixin.deepin
E: Couldn't find any package by glob 'com.qq.weixin.deepin'
E: Couldn't find any package by regex 'com.qq.weixin.deepin'
E: Unable to locate package com.qq.im.deepin
E: Couldn't find any package by glob 'com.qq.im.deepin'
E: Couldn't find any package by regex 'com.qq.im.deepin'
The command '/bin/sh -c env DEBIAN_FRONTEND=noninteractive apt-get install -y com.qq.weixin.deepin com.qq.im.deepin && apt-get clean' returned a non-zero code: 100

Unable to start

Log:

backend_syslog.go: 45: < info> syslog is not available: Unix syslog delivery error
backend_syslog.go: 45: < info> syslog is not available: Unix syslog delivery error
backend_syslog.go: 45: < info> syslog is not available: Unix syslog delivery error
backend_syslog.go: 45: < info> syslog is not available: Unix syslog delivery error
main.go: 77: empty display string

The differences between --home and --share options for using with folder.

The built-in help of x11docker tells the following usages:

$ x11docker -h | egrep -A 5 -- '--home |--share '
 -m, --home [=ARG]     Create a persistant HOME folder for data storage.
                       Default: Uses ~/.local/share/x11docker/IMAGENAME.
                       ARG can be another host folder or a Docker volume.
                       (~/.local/share/x11docker has a softlink to ~/x11docker.)
                       (Use --homebasedir to change this base storage folder.)
     --share ARG       Share host file or folder ARG. Read-only with ARG:ro
                       Device files in /dev can be shared, too.
                       ARG can also be a Docker volume instead of a host folder.

What's the differences between --home and --share options for using with folder?

Building the deepin lion docker image in an elegant way.

I try to build the deepin desktop docker image with the following Dockerfile:

FROM debian

ENV DEBIAN_FRONTEND=noninteractive \
    TERM=xterm \
    LANG=en_US.utf8 \
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games

COPY stable /usr/share/debootstrap/scripts/lion
RUN apt-get update && apt-get install -y debootstrap && \
    debootstrap --variant=minbase --no-check-gpg --arch=amd64 lion basicsystem http://packages.deepin.com/deepin/ && \
    apt-get install -y curl && \
    cd /tmp && curl -O -Lx socks5://127.0.0.1:18888 http://packages.deepin.com/deepin/pool/main/d/deepin-keyring/deepin-keyring_2020.03.13-1_all.deb && \
    dpkg -x deepin-keyring_2020.03.13-1_all.deb /basicsystem

    # The following form can't work either.ใ€€
    # curl -Lx socks5://127.0.0.1:18888 http://packages.deepin.com/deepin/pool/main/d/deepin-keyring/deepin-keyring_2020.03.13-1_all.deb | dpkg -x - /basicsystem
    
FROM scratch
LABEL maintainer='Hongyi Zhao <[email protected]>'
COPY --from=0 /basicsystem /

RUN rm /bin/sh && \
    ln -s /bin/bash /bin/sh && \
    sed -i "s/mesg n/tty -s \&\& mesg n/" /root/.profile && \
    apt-get update && \
    apt --fix-broken -y install && \
    apt-get -y autoremove --purge && apt-get autoclean -y && apt-get clean -y


# choose a mirror
RUN echo "deb http://packages.deepin.com/deepin/ lion main non-free contrib" > /etc/apt/sources.list

# basics
RUN rm -rf /var/lib/apt/lists/* && \
    apt-get clean && \
    apt-get update && \
    apt-mark hold iptables && \
    apt-get dist-upgrade -y && \
    apt-get -y autoremove && \
    apt-get clean && \
    apt-get install -y \
    dbus-x11 \
    libxv1 \
    locales-all \
    mesa-utils \
    mesa-utils-extra \
    procps \
    psmisc

# deepin desktop
RUN apt-get install -y --no-install-recommends \
    dde \
    at-spi2-core \
    gnome-themes-standard \
    gtk2-engines-murrine \
    gtk2-engines-pixbuf \
    pciutils

# additional applications
RUN apt-get install -y \
    deepin-calculator \
    deepin-image-viewer \
    deepin-screenshot \
    deepin-system-monitor \
    deepin-terminal \
    deepin-movie \
    gedit \
    oneko \
    sudo \
    synaptic \
    apt-transport-https

# chinese fonts
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    xfonts-wqy fonts-wqy-microhei fonts-wqy-zenhei

ENV DEBIAN_FRONTEND ''  
ENV TERM ''

The used image build command and the error are shown as below:

$ docker build --network host -f Dockerfiles/lion . -t deepin/lion
[...]
Processing triggers for libc-bin (2.28-10) ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   146  100   146    0     0   2027      0 --:--:-- --:--:-- --:--:--  2027
dpkg-deb: error: 'deepin-keyring_2020.03.13-1_all.deb' is not a Debian format archive
The command '/bin/sh -c rm /bin/sh &&     ln -s /bin/bash /bin/sh &&     apt-get update && apt-get install -y debootstrap &&     debootstrap --variant=minbase --no-check-gpg --arch=amd64 lion basicsystem http://packages.deepin.com/deepin/ &&     apt-get install -y curl &&     cd /tmp && curl -O -Lx socks5://127.0.0.1:18888 http://packages.deepin.com/deepin/pool/main/d/deepin-keyring/deepin-keyring_2020.03.13-1_all.deb &&     dpkg -x deepin-keyring_2020.03.13-1_all.deb /basicsystem' returned a non-zero code: 2

But I can run the corresponding command successfully from within the host's shell terminal as following:

$ curl -Lx socks5://127.0.0.1:18888 http://packages.deepin.com/deepin/pool/main/d/deepin-keyring/deepin-keyring_2020.03.13-1_all.deb | dpkg -x - path/to/store/keyring
or
$ curl -Lx socks5://127.0.0.1:18888 http://packages.deepin.com/deepin/pool/main/d/deepin-keyring/deepin-keyring_2020.03.13-1_all.deb -O
$ dpkg -x deepin-keyring_2020.03.13-1_all.deb path/to/store/keyring

Any hints for this problem?

Regards,
HY

Some problems relative to docker image creation/updating with x11docker and x11docker-deepin.

Hi,

I've some further questions relative to docker image creation/updating with x11docker and x11docker-deepin as described below:

  • I noticed that the bestwu/docker-deepin, the base of x11docker-deepin, is created based on Deiban. So, I think the x11docker-deepin docker image isn't a pure deepin distro based image. But I want to create a pure/complete deepin based docker image from scratch. For this purpose, what should be the content of the Dockerfile?

  • You have told me that the x11docker disabled the capability for revision of the runtime base image. But I want to have this feature occasionally. Could you please add an option to x11docker for this function?

  • If I installed some packages in the runtime image container started via x11docker, can I clone/export the new docker image instance with the new installed packages reserved?

Regards,
HY

Discuss again about the X server options which will trigger the desktop-window-size-too-large problem.

I noticed that you told the following here:

With x11docker default X server option --xephyr the desktop window size is too large, deepin does some odd resizing. Try --nxagent, --xpra or --weston-xwayland instead. These options allow to resize the window.

We have discussed this problem here. But based on my further tries, the results are still different from your above conclusion. To be simple, the phenomenon I observed is as follows:

--nxagent, --xpra: don't trigger the problem.
--xephyr, --weston-xwayland: trigger the problem.

EDIT:

  1. The testing host environment:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal
  1. The testing is done by a self-built docker image created by the Dockerfile forked from yours with slight modification.

Running the self-build wechat docker image in x11docker's desktop mode via '--desktop' option.

Hi,

I Use the following Dockerfile to create the docker image named as x11docker-deepin-wechat:

$ grep -Ev '^[ ]*(#|$)' Dockerfile 
FROM x11docker/deepin
RUN echo "deb http://packages.deepin.com/deepin/ lion main non-free contrib" > /etc/apt/sources.list
RUN env DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && apt-get update
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
    apt-utils deepin-wine deepin-wine32 deepin-wine32-preloader deepin-wine-helper deepin-wine-uninstaller
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y deepin.com.wechat

The command used to create the image in the directory where the Dockerfile resides:

$ docker build -t x11docker-deepin-wechat .

I noticed some warnings/abnormal info as below:

debconf: delaying package configuration, since apt-utils is not installed
[...]
Adding group `uuidd' (GID 112) ...
Done.
Warning: The home dir /run/uuidd you specified can't be accessed: No such file or directory
Adding system user `uuidd' (UID 109) ...
Adding new user `uuidd' (UID 109) with group `uuidd' ...
Not creating home directory `/run/uuidd'.
Created symlink /etc/systemd/system/sockets.target.wants/uuidd.socket โ†’ /lib/systemd/system/uuidd.socket.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block.

Any hints for eliminating/fixing them?

OTOH, even I've created the image successfully, I still can't run it with any of the following commands:

$ x11docker --sudouser --nxagent --clipboard x11docker-deepin-wechat
x11docker WARNING: User werner is member of group docker.
  That allows unprivileged processes on host to gain root privileges.

x11docker note: Sharing picture clips with option --clipboard
  is only possible with options --xpra, --xpra-xwayland and --hostdisplay.

x11docker note: A few applications do not work well with --nxagent.
  In that case, please try another X server option like --xephyr or --xpra.

x11docker WARNING: Option --sudouser severly reduces container security.
  Container gains additional capabilities to allow sudo and su.
  If an application breaks out of container, it can harm your system
  in many ways without you noticing. Password: x11docker

x11docker note: Option --sudouser: Enabling option --newprivileges=yes.
  You can avoid this with --newprivileges=no

x11docker WARNING: Option --newprivileges=yes: x11docker does not set 
  docker run option --security-opt=no-new-privileges. 
  That degrades container security.
  However, this is still within a default docker setup.

backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
Gkr-Message: secret service operation failed: Failed to execute program org.freedesktop.secrets: Operation not permitted

** (process:128): WARNING **: Failed to get default keyring: 6
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x613a32]

goroutine 69 [running]:
pkg.deepin.io/lib/dbus1.(*Conn).getSerial(0x0, 0xc4201d17d0)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/conn.go:273 +0x22
pkg.deepin.io/lib/dbus1.(*Object).createCall(0xc42029b4d0, 0x7f4e506f7040, 0xc4200160a0, 0xc4201d8400, 0x34, 0x0, 0xc4201d2c00, 0xc4201db410, 0x1, 0x1, ...)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:135 +0xf6
pkg.deepin.io/lib/dbus1.(*Object).Go(0xc42029b4d0, 0xc4201d8400, 0x34, 0x0, 0xc4201d2c00, 0xc4201db410, 0x1, 0x1, 0x34)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:115 +0xbf
pkg.deepin.io/lib/dbusutil/proxy.(*Object).Go_(0xc42029b4a0, 0xc4201d8400, 0x34, 0x86e100, 0xc4201d2c00, 0xc4201db410, 0x1, 0x1, 0xc4201d6a01)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbusutil/proxy/object.go:57 +0x85
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).GoMarkLaunched(0xc42029b4a0, 0x0, 0xc4201d2c00, 0xc420415c00, 0x39, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:102 +0x122
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).MarkLaunched(0xc42029b4a0, 0xc420415c00, 0xc420415c00, 0x39, 0x0, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:106 +0x65
main.(*StartManager).launchAppWithOptions(0xc4202f8410, 0xc420415c00, 0x39, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0xc4202f27d0)
	/build/startdde-3.14.7/startmanager.go:238 +0x2df
main.startAutostartProgram.func1(0xc420415c00, 0x39)
	/build/startdde-3.14.7/startmanager.go:912 +0xf9
created by main.startAutostartProgram
	/build/startdde-3.14.7/startmanager.go:903 +0x77
<warning> sound_effect.go:58: open /etc/lightdm/lightdm.conf: no such file or directory
<warning> brightness.go:154: failed to set brightness to 1 for default: The output(172) has invalid gamma size
<warning> manager.go:619: The output(172) has invalid gamma size
<info> manager.go:630: [updateMonitors] add monitor: default 0 0 1920 1080
<warning> config_version.go:47: Failed to delete config: remove /home/werner/.config/deepin/startdde/display.json: no such file or directory
<warning> brightness.go:154: failed to set brightness to 1 for default: The output(172) has invalid gamma size
<warning> brightness.go:138: The output(172) has invalid gamma size
<error> xsettings.go:243: Start xsettings failed: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
  ->  main.go:98
  ->  proc.go:198
  ->  asm_amd64.s:2361
<warning> main.go:101: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session.go:293: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session.go:509: exec gnome-keyring-daemon err: fork/exec /usr/bin/gnome-keyring-daemon: operation not permitted
<warning> session_process.go:91: Wait command kwin_no_scale [] failed: exit status 139
<info> session_process.go:104: kwin_no_scale [] startup duration: 95.470237ms
<warning> startmanager.go:92: open /usr/lib/UIAppSched.hooks/launched: no such file or directory
<warning> startmanager.go:148: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session_process.go:91: Wait command /usr/lib/deepin-daemon/dde-session-daemon [] failed: exit status 1
<info> session_process.go:104: /usr/lib/deepin-daemon/dde-session-daemon [] startup duration: 219.922595ms
<warning> session_process.go:91: Wait command /usr/bin/dde-dock [] failed: signal: segmentation fault
<info> session_process.go:104: /usr/bin/dde-dock [] startup duration: 46.247104ms
<warning> session_process.go:91: Wait command /usr/bin/dde-desktop [] failed: signal: segmentation fault
<info> session_process.go:104: /usr/bin/dde-desktop [] startup duration: 76.428057ms
<info> session_process.go:59: start dde-session-daemon part2 cost: 432.175ยตs
<warning> session_process.go:63: org.freedesktop.DBus.Error.NameHasNoOwner:Name "com.deepin.daemon.Daemon" does not exist
<info> main.go:125: iowait disabled



$ x11docker --sudouser --xpra --clipboard x11docker-deepin-wechat
x11docker WARNING: User werner is member of group docker.
  That allows unprivileged processes on host to gain root privileges.

x11docker note: Option --xpra: If you encounter issues with xpra, 
  you can try --nxagent instead.
  Rather use xpra from www.xpra.org than from distribution repositories.

x11docker WARNING: Option --sudouser severly reduces container security.
  Container gains additional capabilities to allow sudo and su.
  If an application breaks out of container, it can harm your system
  in many ways without you noticing. Password: x11docker

x11docker note: Option --sudouser: Enabling option --newprivileges=yes.
  You can avoid this with --newprivileges=no

x11docker WARNING: Option --newprivileges=yes: x11docker does not set 
  docker run option --security-opt=no-new-privileges. 
  That degrades container security.
  However, this is still within a default docker setup.

<warning> sound_effect.go:58: open /etc/lightdm/lightdm.conf: no such file or directory
<warning> brightness.go:154: failed to set brightness to 1 for screen: The output(61) has invalid gamma size
<warning> manager.go:619: The output(61) has invalid gamma size
<info> manager.go:630: [updateMonitors] add monitor: screen 0 0 1920 1080
<warning> config_version.go:47: Failed to delete config: remove /home/werner/.config/deepin/startdde/display.json: no such file or directory
<warning> brightness.go:154: failed to set brightness to 1 for screen: The output(61) has invalid gamma size
<warning> brightness.go:138: The output(61) has invalid gamma size
<error> xsettings.go:243: Start xsettings failed: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
  ->  main.go:98
  ->  proc.go:198
  ->  asm_amd64.s:2361
<warning> main.go:101: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session.go:293: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session.go:509: exec gnome-keyring-daemon err: fork/exec /usr/bin/gnome-keyring-daemon: operation not permitted
<warning> session_process.go:91: Wait command kwin_no_scale [] failed: exit status 1
<info> session_process.go:104: kwin_no_scale [] startup duration: 202.758427ms
<warning> startmanager.go:92: open /usr/lib/UIAppSched.hooks/launched: no such file or directory
<warning> startmanager.go:148: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session_process.go:91: Wait command /usr/lib/deepin-daemon/dde-session-daemon [] failed: exit status 1
<info> session_process.go:104: /usr/lib/deepin-daemon/dde-session-daemon [] startup duration: 72.12591ms
<info> session_process.go:104: /usr/bin/dde-dock [] startup duration: 69.960912ms
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
<info> session_process.go:104: /usr/bin/dde-desktop [] startup duration: 390.324481ms
<info> session_process.go:59: start dde-session-daemon part2 cost: 381.852ยตs
<warning> session_process.go:63: org.freedesktop.DBus.Error.NameHasNoOwner:Name "com.deepin.daemon.Daemon" does not exist
<info> main.go:125: iowait disabled
Gkr-Message: secret service operation failed: Failed to execute program org.freedesktop.secrets: Operation not permitted

** (process:128): WARNING **: Failed to get default keyring: 6
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x613a32]

goroutine 210 [running]:
pkg.deepin.io/lib/dbus1.(*Conn).getSerial(0x0, 0xc42035e420)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/conn.go:273 +0x22
pkg.deepin.io/lib/dbus1.(*Object).createCall(0xc420206ed0, 0x7f4ffc811020, 0xc4200160c8, 0xc42023e080, 0x34, 0x0, 0xc4205301e0, 0xc420354720, 0x1, 0x1, ...)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:135 +0xf6
pkg.deepin.io/lib/dbus1.(*Object).Go(0xc420206ed0, 0xc42023e080, 0x34, 0x0, 0xc4205301e0, 0xc420354720, 0x1, 0x1, 0x34)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:115 +0xbf
pkg.deepin.io/lib/dbusutil/proxy.(*Object).Go_(0xc420206ea0, 0xc42023e080, 0x34, 0x86e100, 0xc4205301e0, 0xc420354720, 0x1, 0x1, 0xc420364201)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbusutil/proxy/object.go:57 +0x85
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).GoMarkLaunched(0xc420206ea0, 0x0, 0xc4205301e0, 0xc4201ec3c0, 0x39, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:102 +0x122
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).MarkLaunched(0xc420206ea0, 0xc4201ec300, 0xc4201ec3c0, 0x39, 0x0, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:106 +0x65
main.(*StartManager).launchAppWithOptions(0xc4203724e0, 0xc4201ec3c0, 0x39, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/build/startdde-3.14.7/startmanager.go:238 +0x2df
main.startAutostartProgram.func1(0xc4201ec3c0, 0x39)
	/build/startdde-3.14.7/startmanager.go:912 +0xf9
created by main.startAutostartProgram
	/build/startdde-3.14.7/startmanager.go:903 +0x77
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x613a32]

goroutine 211 [running]:
pkg.deepin.io/lib/dbus1.(*Conn).getSerial(0x0, 0xc4202b2000)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/conn.go:273 +0x22
pkg.deepin.io/lib/dbus1.(*Object).createCall(0xc420206ed0, 0x7f4ffc811020, 0xc4200160c8, 0xc4202da000, 0x34, 0x0, 0xc4202e4000, 0xc4202b8000, 0x1, 0x1, ...)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:135 +0xf6
pkg.deepin.io/lib/dbus1.(*Object).Go(0xc420206ed0, 0xc4202da000, 0x34, 0x0, 0xc4202e4000, 0xc4202b8000, 0x1, 0x1, 0x34)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:115 +0xbf
pkg.deepin.io/lib/dbusutil/proxy.(*Object).Go_(0xc420206ea0, 0xc4202da000, 0x34, 0x86e100, 0xc4202e4000, 0xc4202b8000, 0x1, 0x1, 0xc42014e301)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbusutil/proxy/object.go:57 +0x85
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).GoMarkLaunched(0xc420206ea0, 0x0, 0xc4202e4000, 0xc420015110, 0x2a, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:102 +0x122
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).MarkLaunched(0xc420206ea0, 0xc420015100, 0xc420015110, 0x2a, 0x0, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:106 +0x65
main.(*StartManager).launchAppWithOptions(0xc4203724e0, 0xc420015110, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/build/startdde-3.14.7/startmanager.go:238 +0x2df
main.startAutostartProgram.func1(0xc420015110, 0x2a)
	/build/startdde-3.14.7/startmanager.go:912 +0xf9
created by main.startAutostartProgram
	/build/startdde-3.14.7/startmanager.go:903 +0x77


$ x11docker --sudouser --hostdisplay --clipboard x11docker-deepin-wechat
x11docker WARNING: User werner is member of group docker.
  That allows unprivileged processes on host to gain root privileges.

x11docker WARNING: Option --clipboard: To allow clipboard sharing with
  option --hostdisplay, trusted cookies will be enabled.
  No protection against X security leaks is left!
  Consider to use another X server option.

x11docker note: Option --hostdisplay: To allow --hostdisplay with trusted cookies,
  x11docker must share host IPC namespace with container (option --hostipc)
  to allow shared memory for X extension MIT-SHM.

x11docker WARNING: Option --hostdisplay with trusted cookies provides
      QUITE BAD CONTAINER ISOLATION !
  Keylogging and controlling host applications is possible! 
  Clipboard sharing is enabled (option --cliboard).
  It is recommended to use another X server option like --xpra or --nxagent.

x11docker note: Option --hostdisplay may fail with proprietary NVIDIA driver
  on host. In that case try other X server options like --xpra or --xephyr.

x11docker WARNING: Option --hostipc severely degrades 
  container isolation. IPC namespace remapping is disabled.

x11docker WARNING: Option --sudouser severly reduces container security.
  Container gains additional capabilities to allow sudo and su.
  If an application breaks out of container, it can harm your system
  in many ways without you noticing. Password: x11docker

x11docker note: Option --sudouser: Enabling option --newprivileges=yes.
  You can avoid this with --newprivileges=no

x11docker WARNING: Option --newprivileges=yes: x11docker does not set 
  docker run option --security-opt=no-new-privileges. 
  That degrades container security.
  However, this is still within a default docker setup.

<warning> sound_effect.go:58: open /etc/lightdm/lightdm.conf: no such file or directory
<info> manager.go:630: [updateMonitors] add monitor: HDMI-0 0 0 1920 1080
<warning> config_version.go:47: Failed to delete config: remove /home/werner/.config/deepin/startdde/display.json: no such file or directory
<error> xsettings.go:243: Start xsettings failed: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
  ->  main.go:98
  ->  proc.go:198
  ->  asm_amd64.s:2361
<warning> main.go:101: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session.go:293: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session.go:509: exec gnome-keyring-daemon err: fork/exec /usr/bin/gnome-keyring-daemon: operation not permitted
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
backend_syslog.go:45: <info> syslog is not available: Unix syslog delivery error
<warning> session_process.go:91: Wait command kwin_no_scale [] failed: exit status 1
<info> session_process.go:104: kwin_no_scale [] startup duration: 226.247124ms
<warning> startmanager.go:92: open /usr/lib/UIAppSched.hooks/launched: no such file or directory
<warning> startmanager.go:148: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
<warning> session_process.go:91: Wait command /usr/lib/deepin-daemon/dde-session-daemon [] failed: exit status 1
<info> session_process.go:104: /usr/lib/deepin-daemon/dde-session-daemon [] startup duration: 79.247115ms
<info> session_process.go:104: /usr/bin/dde-dock [] startup duration: 74.406089ms
<warning> session_process.go:91: Wait command /usr/bin/dde-desktop [] failed: signal: segmentation fault
<info> session_process.go:104: /usr/bin/dde-desktop [] startup duration: 359.28289ms
<info> session_process.go:59: start dde-session-daemon part2 cost: 417.068ยตs
<warning> session_process.go:63: org.freedesktop.DBus.Error.NameHasNoOwner:Name "com.deepin.daemon.Daemon" does not exist
<info> main.go:125: iowait disabled
Gkr-Message: secret service operation failed: Failed to execute program org.freedesktop.secrets: Operation not permitted

** (process:128): WARNING **: Failed to get default keyring: 6
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x613a32]

goroutine 167 [running]:
pkg.deepin.io/lib/dbus1.(*Conn).getSerial(0x0, 0xc4203200c0)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/conn.go:273 +0x22
pkg.deepin.io/lib/dbus1.(*Object).createCall(0xc4203564e0, 0x7f1e846b60a0, 0xc4200160a0, 0xc4202b0000, 0x34, 0x0, 0xc4201b4060, 0xc4201ee1e0, 0x1, 0x1, ...)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:135 +0xf6
pkg.deepin.io/lib/dbus1.(*Object).Go(0xc4203564e0, 0xc4202b0000, 0x34, 0x0, 0xc4201b4060, 0xc4201ee1e0, 0x1, 0x1, 0x34)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:115 +0xbf
pkg.deepin.io/lib/dbusutil/proxy.(*Object).Go_(0xc4203564b0, 0xc4202b0000, 0x34, 0x86e100, 0xc4201b4060, 0xc4201ee1e0, 0x1, 0x1, 0xc42014e101)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbusutil/proxy/object.go:57 +0x85
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).GoMarkLaunched(0xc4203564b0, 0x0, 0xc4201b4060, 0xc42034b600, 0x39, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:102 +0x122
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).MarkLaunched(0xc4203564b0, 0xc42034b600, 0xc42034b600, 0x39, 0x0, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:106 +0x65
main.(*StartManager).launchAppWithOptions(0xc42035c4e0, 0xc42034b600, 0x39, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/build/startdde-3.14.7/startmanager.go:238 +0x2df
main.startAutostartProgram.func1(0xc42034b600, 0x39)
	/build/startdde-3.14.7/startmanager.go:912 +0xf9
created by main.startAutostartProgram
	/build/startdde-3.14.7/startmanager.go:903 +0x77
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x613a32]

goroutine 166 [running]:
pkg.deepin.io/lib/dbus1.(*Conn).getSerial(0x0, 0xc4201e6000)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/conn.go:273 +0x22
pkg.deepin.io/lib/dbus1.(*Object).createCall(0xc4203564e0, 0x7f1e846b60a0, 0xc4200160a0, 0xc42042a000, 0x34, 0x0, 0xc42012a060, 0xc42023a000, 0x1, 0x1, ...)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:135 +0xf6
pkg.deepin.io/lib/dbus1.(*Object).Go(0xc4203564e0, 0xc42042a000, 0x34, 0x0, 0xc42012a060, 0xc42023a000, 0x1, 0x1, 0x34)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbus1/object.go:115 +0xbf
pkg.deepin.io/lib/dbusutil/proxy.(*Object).Go_(0xc4203564b0, 0xc42042a000, 0x34, 0x86e100, 0xc42012a060, 0xc42023a000, 0x1, 0x1, 0xc420258101)
	/usr/share/gocode/src/pkg.deepin.io/lib/dbusutil/proxy/object.go:57 +0x85
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).GoMarkLaunched(0xc4203564b0, 0x0, 0xc42012a060, 0xc420362c60, 0x25, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:102 +0x122
github.com/linuxdeepin/go-dbus-factory/com%2edeepin%2edaemon%2eapps.(*launchedRecorder).MarkLaunched(0xc4203564b0, 0xc420362c00, 0xc420362c60, 0x25, 0x0, 0x0)
	/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps/auto.go:106 +0x65
main.(*StartManager).launchAppWithOptions(0xc42035c4e0, 0xc420362c60, 0x25, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/build/startdde-3.14.7/startmanager.go:238 +0x2df
main.startAutostartProgram.func1(0xc420362c60, 0x25)
	/build/startdde-3.14.7/startmanager.go:912 +0xf9
created by main.startAutostartProgram
	/build/startdde-3.14.7/startmanager.go:903 +0x77

How to solve these problems?

Regards,
HY

Extending Deepin apricot docker image for sound support with x11docker's corresponding options.

I noticed the following help document of x11docker relevant to enable sound support:

$ x11docker -h |& grep -A3 -- --pulseaudio 
   --pulseaudio: Needs pulseaudio on host and pulseaudio client libs in image.
[...]
 -p, --pulseaudio [=MODE]  Sound with pulseaudio. Needs 'pulseaudio' on host
                       and in image. Optional arg MODE can be 'socket' or 'tcp'.
     --alsa [=CARDNAME]   Sound with ALSA. You can define a desired sound card
                       with CARDNAME. List of available sound cards: aplay -l

Please note, the above documents give several dependencies use cases:

1. --pulseaudio: Needs pulseaudio on host and pulseaudio client libs in image.
2. -p, --pulseaudio [=MODE]  Sound with pulseaudio. Needs 'pulseaudio' on host
                       and in image.
3. --alsa [=CARDNAME]   Sound with ALSA. You can define a desired sound card
                       with CARDNAME.

So, I want to know the specific packages/libraries relative to the above scenarios.

Based on my current understanding, the following command will install the pulseaudio and pulseaudio client libs:

$ sudo apt-get install libpulse0 pulseaudio

But there are so many packages relative to alsa and I still can't figure out how to use it in the container by this method.

Any hints/comments/instructions for this issue will be highly appreciated.

Regards,
HY

About the echo command used for multiple lines case in the Dockerfile.

I've learned that the Dockerfile itself don't support heredoc and also noticed that you use the echo command as a candidate solution for multiple lines heredoc case in the Dockerfile of this repo, say, the following ones:

# cleanup script for use after apt-get
RUN echo '#! /bin/sh\n\
env DEBIAN_FRONTEND=noninteractive apt-get autoremove -y\n\
apt-get clean\n\
find /var/lib/apt/lists -type f -delete\n\
find /var/cache -type f -delete\n\
find /var/log -type f -delete\n\
exit 0\n\
' > /rootfs/cleanup && chmod +x /rootfs/cleanup

and

# debootstrap script
RUN mkdir -p /usr/share/debootstrap/scripts && \
    echo "mirror_style release\n\
download_style apt\n\
finddebs_style from-indices\n\
variants - buildd fakechroot minbase\n\
. /usr/share/debootstrap/scripts/debian-common \n\
" > /usr/share/debootstrap/scripts/$DEEPIN_RELEASE

Some notes for using echo with the above codes:

  1. Why not add -n option of echo to disable the appending of a newline at the end?
  2. You sometimes use single quote, sometimes double quote. Why not uniformly use double quote combination with the -e option of echo to do the job as shown below:
$ echo -en "#!/bin/sh\n\
env DEBIAN_FRONTEND=noninteractive apt-get autoremove -y\n\
apt-get clean\n\
find /var/lib/apt/lists -type f -delete\n\
find /var/cache -type f -delete\n\
find /var/log -type f -delete\n\
exit 0\n\
" 
#! /bin/sh
env DEBIAN_FRONTEND=noninteractive apt-get autoremove -y
apt-get clean
find /var/lib/apt/lists -type f -delete
find /var/cache -type f -delete
find /var/log -type f -delete
exit 0

Failed to run ping command from within docker container: "bash: /usr/bin/ping: Operation not permitted".

The container is created with this Dockerfile and started with the following command:

$ x11docker --sudouser -c --hostnet --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- hongyi-zhao/deepin-wine startdde

But I failed to execute the ping command in the container as shown below.

werner@X10DAi:~/Desktop$ curl -I www.baidu.com 
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: keep-alive
Content-Length: 277
Content-Type: text/html
Date: Tue, 10 Nov 2020 09:15:39 GMT
Etag: "575e1f60-115"
Last-Modified: Mon, 13 Jun 2016 02:50:08 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

werner@X10DAi:~/Desktop$ ping www.baidu.com
bash: /usr/bin/ping: Operation not permitted
werner@X10DAi:~/Desktop$ which ping
/usr/bin/ping

Any hints for this problem?

Regards,
HY

Failure to save file in the default path will affect your experience on Wechat. Try other path.

I start the self-build docker image deepin-wine as shown below:

$ x11docker --share ~/Documents/x11docker --sudouser -c --desktop --init=systemd -- --cap-add=ALL --security-opt seccomp=unconfined -- hongyi-zhao/deepin-wine startdde

This will cause the following problem, which won't appear if I use the --share option like this: "--share ~/x11docker", when starting wechat:

Failure to save file in the default path will affect your experience on Wechat. Try other path.

See the screenshot for more detailed info:

image

Any hints for this problem?

Regards,
HY

The combination '--nxagent --desktop' failed to open the display.

See the following result for more detail.

werner@X10DAi-01:~$ x11docker --sudouser --nxagent --clipboard --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- x11docker/deepin
x11docker WARNING: User werner is member of group docker.
  That allows unprivileged processes on host to gain root privileges.

x11docker note: Sharing picture clips with option --clipboard
  is only possible with options --xpra, --xpra-xwayland and --hostdisplay.

x11docker note: A few applications do not work well with --nxagent.
  In that case, please try another X server option like --xephyr or --xpra.

x11docker WARNING: Found custom DOCKER_RUN_OPTIONS.
  x11docker will add them to 'docker run' command without
  a serious check for validity or security. Found options:
   '--cap-add=IPC_LOCK' '--security-opt' 'seccomp=unconfined'

x11docker WARNING: Option --init=systemd slightly degrades container isolation.
  It adds some user switching capabilities x11docker would drop otherwise.
  However, they are still within default docker capabilities.
  Not within default docker capabilities it adds capability SYS_BOOT.  
  It shares access to host cgroups in /sys/fs/cgroup.
  Some processes in container will run as root.

x11docker WARNING: Option --sudouser severly reduces container security.
  Container gains additional capabilities to allow sudo and su.
  If an application breaks out of container, it can harm your system
  in many ways without you noticing. Password: x11docker

x11docker note: Option --sudouser: Enabling option --newprivileges=yes.
  You can avoid this with --newprivileges=no

x11docker WARNING: Option --newprivileges=yes: x11docker does not set 
  docker run option --security-opt=no-new-privileges. 
  That degrades container security.
  However, this is still within a default docker setup.

Activating service name='org.gtk.vfs.Daemon'
Successfully activated service 'org.gtk.vfs.Daemon'
<warning> sound_effect.go:58: open /etc/lightdm/lightdm.conf: no such file or directory
<info> manager.go:630: [updateMonitors] add monitor: NX1 0 0 1717 995
<warning> config_version.go:47: Failed to delete config: remove /home/werner/.config/deepin/startdde/display.json: no such file or directory
<error> manager.go:365: [switchToExtend] apply (xrandr  --output NX1 --primary --mode 1717x995 --pos 0x0 --rotate normal --reflect normal) failed: exit status 1, stdErr: xrandr: cannot find mode 1717x995

  ->  manager.go:332
  ->  manager.go:469
  ->  manager.go:247
  ->  display.go:40
  ->  main.go:93
  ->  proc.go:198
  ->  asm_amd64.s:2361
<error> manager.go:249: Try apply settings failed for init: exit status 1, stdErr: xrandr: cannot find mode 1717x995

  ->  display.go:40
  ->  main.go:93
  ->  proc.go:198
  ->  asm_amd64.s:2361
Activating service name='ca.desrt.dconf'
No xresources data found!
Successfully activated service 'ca.desrt.dconf'
<warning> session_process.go:91: Wait command /usr/bin/cgexec [-g memory:c1@dde/DE kwin_no_scale] failed: exit status 139
<info> session_process.go:104: /usr/bin/cgexec [-g memory:c1@dde/DE kwin_no_scale] startup duration: 275.130514ms
<warning> startmanager.go:92: open /usr/lib/UIAppSched.hooks/launched: no such file or directory
Activating service name='org.a11y.Bus'
Successfully activated service 'org.a11y.Bus'
<info> session_process.go:104: /usr/bin/cgexec [-g memory:c1@dde/DE /usr/lib/deepin-daemon/dde-session-daemon] startup duration: 214.807604ms
<warning> session_process.go:91: Wait command /usr/bin/cgexec [-g memory:c1@dde/DE /usr/bin/dde-dock] failed: signal: segmentation fault (core dumped)
<info> session_process.go:104: /usr/bin/cgexec [-g memory:c1@dde/DE /usr/bin/dde-dock] startup duration: 231.419903ms
<warning> session_process.go:91: Wait command /usr/bin/cgexec [-g memory:c1@dde/DE /usr/bin/dde-desktop] failed: signal: segmentation fault (core dumped)
<info> session_process.go:104: /usr/bin/cgexec [-g memory:c1@dde/DE /usr/bin/dde-desktop] startup duration: 358.700696ms
Activating service name='com.deepin.api.CursorHelper'
Successfully activated service 'com.deepin.api.CursorHelper'
Activating service name='com.deepin.wm'
Successfully activated service 'com.deepin.wm'
Activating service name='org.kde.kglobalaccel'
Successfully activated service 'org.kde.kglobalaccel'
<info> session_process.go:59: start dde-session-daemon part2 cost: 777.325481ms
<info> main.go:125: iowait disabled
<warning> startmanager.go:552: [/bin/sh -c export GIO_LAUNCHED_DESKTOP_FILE_PID=$$;exec /usr/bin/cgexec -g memory,freezer,blkio:c1@dde/uiapps/3 start-pulseaudio-x11]: exit status 1
Activating service name='com.deepin.dde.Dock'
Activated service 'com.deepin.dde.Dock' failed: Process com.deepin.dde.Dock received signal 11
<warning> manager.go:99: Launch 'dde-dock' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.Dock received signal 11
Activating service name='com.deepin.dde.desktop'
<warning> dde_kwin.go:27: dde-kwin exit with error: exit status 139
Activated service 'com.deepin.dde.desktop' failed: Process com.deepin.dde.desktop received signal 11
<warning> manager.go:99: Launch 'dde-desktop' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.desktop received signal 11
<warning> dde_polkit_agent.go:75: dde-polkit-agent exit with error: signal: segmentation fault (core dumped)
<warning> manager.go:759: [getModesByIds] Invalid mode id: 257
<warning> manager.go:718: [updateMonitor] Set mode '257' failed: Invalid output mode: 257
<warning> monitor.go:169: Invalid mode size: 1717 1069
<info> checker.go:288: process memory: /etc/xdg/autostart/at-spi-dbus-bus.desktop c1@dde/uiapps/2 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/2/cgroup.procs: no such file or directory
<info> checker.go:288: process memory: /etc/xdg/autostart/dde-file-manager-xdg-autostart.desktop c1@dde/uiapps/1 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/1/cgroup.procs: no such file or directory
<info> checker.go:288: process memory: /etc/xdg/autostart/pulseaudio.desktop c1@dde/uiapps/3 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/3/cgroup.procs: no such file or directory
Activating service name='com.deepin.dde.Dock'
Activated service 'com.deepin.dde.Dock' failed: Process com.deepin.dde.Dock received signal 11
<warning> manager.go:99: Launch 'dde-dock' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.Dock received signal 11
Activating service name='com.deepin.dde.desktop'
Activated service 'com.deepin.dde.desktop' failed: Process com.deepin.dde.desktop received signal 11
<warning> manager.go:99: Launch 'dde-desktop' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.desktop received signal 11
<warning> dde_polkit_agent.go:75: dde-polkit-agent exit with error: signal: segmentation fault (core dumped)
Activating service name='com.deepin.dde.Dock'
Activated service 'com.deepin.dde.Dock' failed: Process com.deepin.dde.Dock received signal 11
<warning> manager.go:99: Launch 'dde-dock' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.Dock received signal 11
Activating service name='com.deepin.dde.desktop'
Activated service 'com.deepin.dde.desktop' failed: Process com.deepin.dde.desktop received signal 11
<warning> manager.go:99: Launch 'dde-desktop' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.desktop received signal 11
<warning> dde_polkit_agent.go:75: dde-polkit-agent exit with error: signal: segmentation fault (core dumped)
Activating service name='com.deepin.dde.Dock'
Activated service 'com.deepin.dde.Dock' failed: Process com.deepin.dde.Dock received signal 11
<warning> manager.go:99: Launch 'dde-dock' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.Dock received signal 11
Activating service name='com.deepin.dde.desktop'
Activated service 'com.deepin.dde.desktop' failed: Process com.deepin.dde.desktop received signal 11
<warning> manager.go:99: Launch 'dde-desktop' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.desktop received signal 11
<warning> dde_polkit_agent.go:75: dde-polkit-agent exit with error: signal: segmentation fault (core dumped)
Activating service name='com.deepin.dde.Dock'
Activated service 'com.deepin.dde.Dock' failed: Process com.deepin.dde.Dock received signal 11
<warning> manager.go:99: Launch 'dde-dock' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.Dock received signal 11
Activating service name='com.deepin.dde.desktop'
Activated service 'com.deepin.dde.desktop' failed: Process com.deepin.dde.desktop received signal 11
<warning> manager.go:99: Launch 'dde-desktop' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.desktop received signal 11
<warning> dde_polkit_agent.go:75: dde-polkit-agent exit with error: signal: segmentation fault (core dumped)
Activating service name='com.deepin.dde.Dock'
Activated service 'com.deepin.dde.Dock' failed: Process com.deepin.dde.Dock received signal 11
<warning> manager.go:99: Launch 'dde-dock' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.Dock received signal 11
Activating service name='com.deepin.dde.desktop'
Activated service 'com.deepin.dde.desktop' failed: Process com.deepin.dde.desktop received signal 11
<warning> manager.go:99: Launch 'dde-desktop' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.desktop received signal 11
<warning> dde_polkit_agent.go:75: dde-polkit-agent exit with error: signal: segmentation fault (core dumped)
Activating service name='com.deepin.dde.Dock'
Activated service 'com.deepin.dde.Dock' failed: Process com.deepin.dde.Dock received signal 11
<warning> manager.go:99: Launch 'dde-dock' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.Dock received signal 11
Activating service name='com.deepin.dde.desktop'
Activated service 'com.deepin.dde.desktop' failed: Process com.deepin.dde.desktop received signal 11
<warning> manager.go:99: Launch 'dde-desktop' failed: org.freedesktop.DBus.Error.Spawn.ChildSignaled:Process com.deepin.dde.desktop received signal 11
<warning> dde_polkit_agent.go:75: dde-polkit-agent exit with error: signal: segmentation fault (core dumped)

The screenshot is as follows:

image

Any hints for this problem?

Regards,
HY

Run a single application in seamless mode.

Hi,

Currently, when I want to start a specific GUI app, say, wechat, the command similar to the following is suggested:

$ x11docker x11docker-deepin-wechat wechat

This will open the target app's GUI with the deepin desktop as the background. So I want to know whether it's possible for me to run the app separately just as the manner represented by wine-based solution, i.e., w/o running it on the deepin desktop background.

Regards,
HY

Some technical details about creating x11docker-deepin image from scratch.

I still have some questions on creating x11docker-deepin image from scratch as shown below:

  1. I noticed the following message during the building process:
Try updating from "http://cdn.packages.deepin.com/deepin/tree/lastore" to "/var/lib/lastore/tree"

3506 metadata, 2199 content objects fetched; 8991 KiB transferred in 488 seconds
E: gzip: invalid header
E: GenerateCategory failed EOF

Compared to the other steps, the above step has very low network speed. And furthermore, some errors have occurred as shown above.

Any hints for this problem?

  1. I still can't figure out the mechanism of the Dockerfile used by bestwu, say, the following parts:
COPY stable /usr/share/debootstrap/scripts/lion
COPY deepin-archive-keyring.gpg /usr/share/keyrings/deepin-archive-keyring.gpg
COPY deepin-pools-keyring.gpg /root/deepin-pools-keyring.gpg
RUN apt-get update && apt-get install -y debootstrap && \
    debootstrap --variant=minbase --no-check-gpg --arch=amd64 lion rootfs http://packages.deepin.com/deepin/ && \
    cp /usr/share/keyrings/deepin-archive-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ && \
    cp /root/deepin-pools-keyring.gpg rootfs/etc/apt/trusted.gpg.d/ && \
    chroot ./rootfs apt-get autoclean && \
    chroot ./rootfs apt-get clean

Why is rootfs used here to complete the work of debootstrap? Why must the apt-get operations be done with chroot? Why should the file stable have the following content?:

mirror_style release
download_style apt
finddebs_style from-indices
variants - buildd fakechroot minbase
keyring /usr/share/keyrings/deepin-archive-keyring.gpg

# include common settings
if [ -e "$DEBOOTSTRAP_DIR/scripts/debian-common" ]; then
 . "$DEBOOTSTRAP_DIR/scripts/debian-common"
elif [ -e /debootstrap/debian-common ]; then
 . /debootstrap/debian-common
else
 error 1 NOCOMMON "File not found: debian-common"
fi

Regards,
HY

Some warning and info given by x11docker when running deepin-wine image.

When I start the deepin-wine image, x11docker will give the following warning and info on the stdout:

<warning> session.go:948: failed to call com.deepin.userexperience.Daemon.SendLogonData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<info> main.go:313: iowait disabled
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:346: launch failed: reserved character '\'' is not be quoted
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:1107: reserved character '\'' is not be quoted
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:730: [/bin/sh -c export GIO_LAUNCHED_DESKTOP_FILE_PID=$$;exec /usr/bin/cgexec -g memory,freezer,blkio:c1@dde/uiapps/2 /usr/local/bin/x11docker-xrandr]: exit status 1
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:730: [/bin/sh -c export GIO_LAUNCHED_DESKTOP_FILE_PID=$$;exec /usr/bin/cgexec -g memory,freezer,blkio:c1@dde/uiapps/8 start-pulseaudio-x11]: exit status 1
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<warning> startmanager.go:643: failed to call com.deepin.userexperience.Daemon.SendAppStateData, The name com.deepin.userexperience.Daemon was not provided by any .service files
<info> handle_event.go:198: redo map touch screen
<info> handle_event.go:198: redo map touch screen
<warning> util.go:451: failed to get current using graphics card pci id
<warning> dde_shutdown.go:32: failed to start deepinid-daemon: fork/exec /usr/lib/deepin-deepinid-daemon/deepin-deepinid-daemon: no such file or directory
<warning> watchdog.go:89: fork/exec /usr/lib/deepin-deepinid-daemon/deepin-deepinid-daemon: no such file or directory
<info> checker.go:293: process memory: /etc/xdg/autostart/xdg-user-dirs.desktop c1@dde/uiapps/3 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/3/cgroup.procs: no such file or directory
<warning> startmanager.go:765: open /sys/fs/cgroup/memory/c1@dde/uiapps/3/cgroup.procs: no such file or directory
<info> checker.go:293: process memory: /etc/xdg/autostart/deepin-ab-recovery.desktop c1@dde/uiapps/1 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/1/cgroup.procs: no such file or directory
<warning> startmanager.go:765: open /sys/fs/cgroup/memory/c1@dde/uiapps/1/cgroup.procs: no such file or directory
<info> checker.go:293: process memory: /etc/xdg/autostart/at-spi-dbus-bus.desktop c1@dde/uiapps/6 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/6/cgroup.procs: no such file or directory
<warning> startmanager.go:765: open /sys/fs/cgroup/memory/c1@dde/uiapps/6/cgroup.procs: no such file or directory
<info> checker.go:293: process memory: /etc/xdg/autostart/x11docker-xrandr.desktop c1@dde/uiapps/2 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/2/cgroup.procs: no such file or directory
<warning> startmanager.go:765: open /sys/fs/cgroup/memory/c1@dde/uiapps/2/cgroup.procs: no such file or directory
<info> checker.go:293: process memory: /etc/xdg/autostart/pulseaudio.desktop c1@dde/uiapps/8 0 open /sys/fs/cgroup/memory/c1@dde/uiapps/8/cgroup.procs: no such file or directory
<warning> startmanager.go:765: open /sys/fs/cgroup/memory/c1@dde/uiapps/8/cgroup.procs: no such file or directory

Any hints for fixing this problem?

Regards,
HY

The strange behavior when using --share=$HOME.

I try to use --share=$HOME to start deepin-wine apricot image with x11docker. This will cause the following two symlinks to be created:

werner@X10DAi:~$ ls -l | grep werner$
lrwxrwxrwx  1 werner werner    17 Dec  6 08:23 werner -> /home.host/werner
werner@X10DAi:~$ ls -l ~/x11docker/hongyizhao-deepin-wine | grep werner$
lrwxrwxrwx 1 werner werner   17 Dec  6 08:14 home.host.werner -> /home.host/werner

I'm still confused on this behavior of x11docker. Any hints will be highly appreciated.

Regards,
HY

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.