Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QXcbConnection: Could not connect to display :0 #9

Closed
ErroneousBosch opened this issue Jul 21, 2018 · 3 comments
Closed

QXcbConnection: Could not connect to display :0 #9

ErroneousBosch opened this issue Jul 21, 2018 · 3 comments

Comments

@ErroneousBosch
Copy link

Trying to create a Calibre docker based on this image, keep getting this error:
QXcbConnection: Could not connect to display :0

Dockerfile:

FROM jlesage/baseimage-gui:ubuntu-16.04

RUN apt-get update && \
apt-get install -y  python wget xz-utils xdg-utils locales

RUN wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin

ENV LANG=en_US.UTF-8
RUN locale-gen en_US.UTF-8

# Copy the start script.
COPY startapp.sh /startapp.sh

# Set the name of the application.
ENV APP_NAME="Calibre"

startapp just contains a call to start calibre from /opt/calibre/ . Any insight appreciated.

@jlesage
Copy link
Owner

jlesage commented Jul 23, 2018

How do you start the container? I built the image with the same Dockerfile and started the container with docker run --rm -p 5800:5800 calibre: I was able to get the calibre wizard.

@jlesage
Copy link
Owner

jlesage commented Jul 23, 2018

My startapp.sh:

#!/bin/sh
exec /opt/calibre/calibre

@ErroneousBosch
Copy link
Author

OK, suspect this was a portainer issue with it not updating the image when I told it to. One of my old builds must have been throwing the error. Sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants