| Environment | Default value |
|---|---|
| UID | 1000 |
| GID | 1000 |
docker run \
-d \
--name firefox \
-e DISPLAY=$DISPLAY \
-e UID=1000 \
-e GID=1000 \
-v /tmp/.X11-unix:/tmp/.X11-unix
-v /dev/snd:/dev/snd
-v /usr/share/fonts:/usr/share/fonts:ro
gists/firefox
If you receive the following error
Gtk-WARNING **: cannot open display: :1
You should allow the docker user to communicate with your X
xhost +local:docker
or
xhost +local:root
Content type
Image
Digest
Size
88.6 MB
Last updated
almost 10 years ago
docker pull gists/firefox