You are not logged in.

#1 2016-03-13 09:53:49

schimpfj
Member
From: Frankfurt, Germany
Registered: 2007-08-15
Posts: 53

Docker UI Apps Ceased Working After System Upgrade

About a month ago I did a system upgrade after which my docker apps which require UI ceased working. During this upgrade docker got upgraded to version 1.10. I was waiting a few weeks in anticipation of further upgrades to fix the issue, which is not the case. According to Google/search in archlinux Forum it appears I am the only one with this issue.

I could start docker apps until recently as follows:

kmymoney() {
        xhost local: > /dev/null

        docker_run=kmymoney

        if [ ! -z "$1" ]; then
                docker_run="$1"
        fi

        docker run --rm -ti \
                -v /home/juser/tmp/dockerhome:/home/kmymoney/ \
                -v /mnt/nas/data:/home/kmymoney/data \
                -v /tmp/.X11-unix:/tmp/.X11-unix \
                --device=/dev/snd:/dev/snd \
                --device=/dev/dri:/dev/dri:rw \
                -e DISPLAY=unix$DISPLAY \
                kmymoney:2015-08-01 $docker_run

        xhost -local: > /dev/null
}

Since the system (and docker) upgrade I am getting error:

cannot connect to X server unix:0

I can still use non-UI apps and I can also start UI apps as long as they are not using X server, i.e. command line only. For example, I can start above image with

/bin/bash

for '$docker_run' instead of kmymoney.

Rollback is not an option as docker images got migrated.

I suspect I have done something incorrectly right from the beginning which might have been tolerated by system or Docker until the upgrade. Anyone having an idea?

Offline

#2 2016-03-13 16:40:54

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Docker UI Apps Ceased Working After System Upgrade

Something else is going on...I tested your function as written (except with a gnucash image because there wasn't a kmymoney image on the Docker Hub) and it worked fine. Perhaps there's an issue with how the kmymoney image was built and it needs to be rebuilt from the source Dockerfile.

Scott

Offline

#3 2016-03-16 08:01:50

schimpfj
Member
From: Frankfurt, Germany
Registered: 2007-08-15
Posts: 53

Re: Docker UI Apps Ceased Working After System Upgrade

Thanks for the hint. Often I forget about the most obvious solution. I did a rebuild of my (local) image just now. Unfortunately no joy - still getting same error.

It's not just my kmymoney image - it's the same for all my GUI images.

Offline

#4 2016-03-16 15:45:35

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Docker UI Apps Ceased Working After System Upgrade

Hmm, wish I could help you more...I'd suggest perhaps asking on IRC in #docker and see if someone more knowledgeable might have an answer for you. 

Scott

Offline

#5 2016-03-16 15:55:34

schimpfj
Member
From: Frankfurt, Germany
Registered: 2007-08-15
Posts: 53

Re: Docker UI Apps Ceased Working After System Upgrade

Will give a try. Thx. If I get a to a solution I will post here.

Offline

Board footer

Powered by FluxBB