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

Startup Error: Unable to detect graphics environment #13

Open
jashby44 opened this issue May 14, 2021 · 1 comment
Open

Startup Error: Unable to detect graphics environment #13

jashby44 opened this issue May 14, 2021 · 1 comment

Comments

@jashby44
Copy link

Hi, I'm hitting a start up error when trying to fire this up on my mac (Catalina 10.15.7):

$ docker run --rm \
  -e DISPLAY=${DISPLAY} \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v ~/.PyCharm:/home/developer/.PyCharm \
  -v ~/.PyCharm.java:/home/developer/.java \
  -v ~/.PyCharm.py2:/usr/local/lib/python2.7 \
  -v ~/.PyCharm.py3:/usr/local/lib/python3.7 \
  -v ~/.PyCharm.share:/home/developer/.local/share/JetBrains \
  -v ~/myproject:/home/developer/Project \
  --name pycharm-$(head -c 4 /dev/urandom | xxd -p)-$(date +'%Y%m%d-%H%M%S') \
rycus86/pycharm:latest
Unable to find image 'rycus86/pycharm:latest' locally
latest: Pulling from rycus86/pycharm
8f0fdd3eaac0: Pull complete 
c4ab03a22832: Pull complete 
67091485099b: Pull complete 
fd74f81b5306: Pull complete 
a19fc54a8a15: Pull complete 
Digest: sha256:332f672e1ceaddab72bc9cbe97155ca9a8d655a48462335a36f9719d78a4ed89
Status: Downloaded newer image for rycus86/pycharm:latest
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

Startup Error: Unable to detect graphics environment

Any idea what the issue is? Something with X11?

Here's my docker version fyi:

docker --version
Docker version 20.10.5, build 55c4c88
@rycus86
Copy link
Owner

rycus86 commented May 14, 2021

Hi? Try restarting the terminal if you haven't done so after installing XQuartz, and if you did then try xhost + as it may be just refusing the connection by default.

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