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

Add chromium and set up X11 socket #459

Closed

Conversation

stardust66
Copy link
Contributor

This didn't work on my machine, but it should as long the X11 server on the host is allowing connections from the docker container. This involves using 'xhost' to specify permissions.

You'll need XQuartz if you're on a Mac, or Cygwin/X if you're on Windows.

Context

Summary of Changes

  • Attach host X11 socket (/tmp/.X11-unix) to container.
  • Expose environmental variable DISPLAY to container.

This didn't work on my machine, but it should as long the X11 server
on the host is allowing connections from the docker container. This
involves using 'xhost' to specify permissions.
@@ -16,4 +16,5 @@ WORKDIR /refugerestrooms
COPY Gemfile /refugerestrooms/Gemfile
COPY Gemfile.lock /refugerestrooms/Gemfile.lock
RUN bundle install
RUN apt-get install -y chromium
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this at the end instead of with all the apt-get statements so Docker can use its cache for everything that came before.

@mi-wood
Copy link
Member

mi-wood commented Feb 18, 2018

I tried something similar and am still getting "Cannot open display" :/

@stardust66
Copy link
Contributor Author

stardust66 commented Feb 19, 2018

Yeah that's what I've been getting. Did you change the permissions with xhost?

@stardust66
Copy link
Contributor Author

Closing this for now. No progress has been made recently.

@stardust66 stardust66 closed this May 1, 2018
@stardust66 stardust66 deleted the docker-chromium branch June 11, 2018 01:49
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

Successfully merging this pull request may close these issues.

2 participants