Skip to content

Commit

Permalink
GUI support for docker. (#379)
Browse files Browse the repository at this point in the history
Summary:
Thanks for the great repo! I very much like the easy set up via docker. However, one of the first things I did, was to figure out a way to display stuff like images or plots, without having to save them as images. I thought this might be interestering to others as well.

Kind regards.
Pull Request resolved: facebookresearch/detectron2#379

Differential Revision: D18673252

Pulled By: ppwwyyxx

fbshipit-source-id: 4934fae9be0fe778bd1425340a15320ec3fa9bd2
  • Loading branch information
maxfrei750 authored and facebook-github-bot committed Nov 24, 2019
1 parent 27f337a commit f8ed555
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ FROM nvidia/cuda:10.1-cudnn7-devel
# To use this Dockerfile:
# 1. `nvidia-docker build -t detectron2:v0 .`
# 2. `nvidia-docker run -it --name detectron2 detectron2:v0`
#
# To enable GUI support (Linux):
# 1. Grant the container temporary access to your x server (will be reverted at reboot of your host):
# `xhost +local:`docker inspect --format='{{ .Config.Hostname }}' detectron2``
# 2. `nvidia-docker run -it --name detectron2 --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" detectron2:v0`


ENV DEBIAN_FRONTEND noninteractive
Expand Down

0 comments on commit f8ed555

Please sign in to comment.