Comments (5)
There's some good commentary in the Dockerfile itself. Here's one example:
# VERSION: 0.1
# DESCRIPTION: Create the atom editor in a container
# AUTHOR: Jessica Frazelle <[email protected]>
# COMMENTS:
# This file describes how to build the atom editor
# in a container with all dependencies installed.
# Note: atom is not a node-webkit app,
# found this out a little too late into this example
# it uses atom-shell(https://github.com/atom/atom-shell)
# Tested on Debian Jessie.
# USAGE:
# # Download atom Dockerfile
# wget http://raw.githubusercontent.com/jfrazelle/dockerfiles/master/atom/Dockerfile
#
# # Build atom image
# docker build -t atom .
#
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e DISPLAY=unix$DISPLAY atom
#
from dockerfiles.
+1
from dockerfiles.
ok i think almost all have instructions at the top now
from dockerfiles.
Not sure, how to start firefox container.
https://github.com/jessfraz/dockerfiles/blob/master/firefox/Dockerfile
veeru@ghost:~$ sudo docker run --rm r.j3ss.co/firefox:latest
(firefox:1): Gtk-WARNING **: 17:52:50.701: Locale not supported by C library.
Using the fallback 'C' locale.
Error: no DISPLAY environment variable specified
Any help?
from dockerfiles.
This worked for me (see https://github.com/jessfraz/dotfiles/blob/master/.dockerfunc)
xhost + # caution: may not be secure
docker run -d
--tmpfs /dev/shm
--net host
--cpuset-cpus 0
-v /etc/localtime:/etc/localtime:ro
-v /tmp/.X11-unix:/tmp/.X11-unix
-v "${HOME}/.firefox/cache:/root/.cache/mozilla"
-v "${HOME}/.firefox/mozilla:/root/.mozilla"
-v "${HOME}/Downloads:/root/Downloads"
-v "${HOME}/Pictures:/root/Pictures"
-v "${HOME}/Torrents:/root/Torrents"
-e "DISPLAY=${DISPLAY}"
-e GDK_SCALE
-e GDK_DPI_SCALE
--device /dev/snd
--device /dev/dri
--name firefox
jess/firefox "$@"
NOTES:
Replaced "--memory 2gb" with "--tmpfs /dev/shm" to address tab crashes (see
https://github.com/jessfraz/dockerfiles/issues/490)
Replaced -e "DISPLAY=unix${DISPLAY}" \ with -e "DISPLAY=${DISPLAY}" \ to connect to local host on Ubuntu
Replaced
from dockerfiles.
Related Issues (20)
- cathode - error during build HOT 1
- jess/firefox ESNI is broken HOT 3
- dockerfile config changes
- tor-browser/dockerfile: version 9.0.10 not available
- official website for jessfraz/pastebinit seems down
- docker hub profile disambiguation
- jess/firefox won't start HOT 3
- Consider firefox image updates for stable tracks HOT 1
- Consider Alpine Linux foundation for Firefox and Chromium
- Using audio on the jess/pulseaudio container, with Podman and Mac OS
- Q - In the chromium Dockerfile, is the add user step necessary?
- Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted HOT 1
- Dockerfile for Logseq Desktop?
- the jess/virtualbox docker image how can use
- Docker images not updated since 2023-06-13 HOT 4
- Dick HOT 1
- GitHub CLI | Take GitHub to the command line
- New
- . yu
- 如何将dockerdesktop 安装到D盘,使用命令行"Docker Desktop Installer.exe" install --installation-dir=<path>出现这个问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfiles.