Code Monkey home page Code Monkey logo

docker-firefox's Introduction

Docker container for Firefox

Release Docker Image Size Docker Pulls Docker Stars Build Status Donate

This project implements a Docker container for Firefox.

The GUI of the application is accessed through a modern web browser (no installation or configuration needed on the client side) or via any VNC client.


Firefox logoFirefox

Mozilla Firefox is a free and open-source web browser developed by Mozilla Foundation and its subsidiary, Mozilla Corporation.


Table of Content

Quick Start

NOTE: The Docker command provided in this quick start is given as an example and parameters should be adjusted to your need.

Launch the Firefox docker container with the following command:

docker run -d \
    --name=firefox \
    -p 5800:5800 \
    -v /docker/appdata/firefox:/config:rw \
    jlesage/firefox

Where:

  • /docker/appdata/firefox: This is where the application stores its configuration, states, log and any files needing persistency.

Browse to http://your-host-ip:5800 to access the Firefox GUI.

Usage

docker run [-d] \
    --name=firefox \
    [-e <VARIABLE_NAME>=<VALUE>]... \
    [-v <HOST_DIR>:<CONTAINER_DIR>[:PERMISSIONS]]... \
    [-p <HOST_PORT>:<CONTAINER_PORT>]... \
    jlesage/firefox
Parameter Description
-d Run the container in the background. If not set, the container runs in the foreground.
-e Pass an environment variable to the container. See the Environment Variables section for more details.
-v Set a volume mapping (allows to share a folder/file between the host and the container). See the Data Volumes section for more details.
-p Set a network port mapping (exposes an internal container port to the host). See the Ports section for more details.

Environment Variables

To customize some properties of the container, the following environment variables can be passed via the -e parameter (one for each variable). Value of this parameter has the format <VARIABLE_NAME>=<VALUE>.

Variable Description Default
USER_ID ID of the user the application runs as. See User/Group IDs to better understand when this should be set. 1000
GROUP_ID ID of the group the application runs as. See User/Group IDs to better understand when this should be set. 1000
SUP_GROUP_IDS Comma-separated list of supplementary group IDs of the application. (no value)
UMASK Mask that controls how permissions are set for newly created files and folders. The value of the mask is in octal notation. By default, the default umask value is 0022, meaning that newly created files and folders are readable by everyone, but only writable by the owner. See the online umask calculator at http://wintelguy.com/umask-calc.pl. 0022
LANG Set the locale, which defines the application's language, if supported. Format of the locale is language[_territory][.codeset], where language is an ISO 639 language code, territory is an ISO 3166 country code and codeset is a character set, like UTF-8. For example, Australian English using the UTF-8 encoding is en_AU.UTF-8. en_US.UTF-8
TZ TimeZone used by the container. Timezone can also be set by mapping /etc/localtime between the host and the container. Etc/UTC
KEEP_APP_RUNNING When set to 1, the application will be automatically restarted when it crashes or terminates. 0
APP_NICENESS Priority at which the application should run. A niceness value of -20 is the highest priority and 19 is the lowest priority. The default niceness value is 0. NOTE: A negative niceness (priority increase) requires additional permissions. In this case, the container should be run with the docker option --cap-add=SYS_NICE. 0
INSTALL_PACKAGES Space-separated list of packages to install during the startup of the container. List of available packages can be found at https://mirrors.alpinelinux.org. ATTENTION: Container functionality can be affected when installing a package that overrides existing container files (e.g. binaries). (no value)
PACKAGES_MIRROR Mirror of the repository to use when installing packages. List of mirrors is available at https://mirrors.alpinelinux.org. (no value)
CONTAINER_DEBUG Set to 1 to enable debug logging. 0
DISPLAY_WIDTH Width (in pixels) of the application's window. 1920
DISPLAY_HEIGHT Height (in pixels) of the application's window. 1080
DARK_MODE When set to 1, dark mode is enabled for the application. 0
SECURE_CONNECTION When set to 1, an encrypted connection is used to access the application's GUI (either via a web browser or VNC client). See the Security section for more details. 0
SECURE_CONNECTION_VNC_METHOD Method used to perform the secure VNC connection. Possible values are SSL or TLS. See the Security section for more details. SSL
SECURE_CONNECTION_CERTS_CHECK_INTERVAL Interval, in seconds, at which the system verifies if web or VNC certificates have changed. When a change is detected, the affected services are automatically restarted. A value of 0 disables the check. 60
WEB_LISTENING_PORT Port used by the web server to serve the UI of the application. This port is used internally by the container and it is usually not required to be changed. By default, a container is created with the default bridge network, meaning that, to be accessible, each internal container port must be mapped to an external port (using the -p or --publish argument). However, if the container is created with another network type, changing the port used by the container might be useful to prevent conflict with other services/containers. NOTE: a value of -1 disables listening, meaning that the application's UI won't be accessible over HTTP/HTTPs. 5800
VNC_LISTENING_PORT Port used by the VNC server to serve the UI of the application. This port is used internally by the container and it is usually not required to be changed. By default, a container is created with the default bridge network, meaning that, to be accessible, each internal container port must be mapped to an external port (using the -p or --publish argument). However, if the container is created with another network type, changing the port used by the container might be useful to prevent conflict with other services/containers. NOTE: a value of -1 disables listening, meaning that the application's UI won't be accessible over VNC. 5900
VNC_PASSWORD Password needed to connect to the application's GUI. See the VNC Password section for more details. (no value)
ENABLE_CJK_FONT When set to 1, open-source computer font WenQuanYi Zen Hei is installed. This font contains a large range of Chinese/Japanese/Korean characters. 0
FF_OPEN_URL The URL to open when Firefox starts. (no value)
FF_KIOSK Set to 1 to enable kiosk mode. This mode launches Firefox in a very restricted and limited mode best suitable for public areas or customer-facing displays. 0

Deployment Considerations

Many tools used to manage Docker containers extract environment variables defined by the Docker image and use them to create/deploy the container. For example, this is done by:

  • The Docker application on Synology NAS
  • The Container Station on QNAP NAS
  • Portainer
  • etc.

While this can be useful for the user to adjust the value of environment variables to fit its needs, it can also be confusing and dangerous to keep all of them.

A good practice is to set/keep only the variables that are needed for the container to behave as desired in a specific setup. If the value of variable is kept to its default value, it means that it can be removed. Keep in mind that all variables are optional, meaning that none of them is required for the container to start.

Removing environment variables that are not needed provides some advantages:

  • Prevents keeping variables that are no longer used by the container. Over time, with image updates, some variables might be removed.
  • Allows the Docker image to change/fix a default value. Again, with image updates, the default value of a variable might be changed to fix an issue, or to better support a new feature.
  • Prevents changes to a variable that might affect the correct function of the container. Some undocumented variables, like PATH or ENV, are required to be exposed, but are not meant to be changed by users. However, container management tools still show these variables to users.
  • There is a bug with the Container Station on QNAP and the Docker application on Synology, where an environment variable without value might not be allowed. This behavior is wrong: it's absolutely fine to have a variable without value. In fact, this container does have variables without value by default. Thus, removing unneeded variables is a good way to prevent deployment issue on these devices.

Data Volumes

The following table describes data volumes used by the container. The mappings are set via the -v parameter. Each mapping is specified with the following format: <HOST_DIR>:<CONTAINER_DIR>[:PERMISSIONS].

Container path Permissions Description
/config rw This is where the application stores its configuration, states, log and any files needing persistency.

Ports

Here is the list of ports used by the container.

When using the default bridge network, ports can be mapped to the host via the -p parameter (one per port mapping). Each mapping is defined with the following format: <HOST_PORT>:<CONTAINER_PORT>. The port number used inside the container might not be changeable, but you are free to use any port on the host side.

See the Docker Container Networking documentation for more details.

Port Protocol Mapping to host Description
5800 TCP Optional Port to access the application's GUI via the web interface. Mapping to the host is optional if access through the web interface is not wanted. For a container not using the default bridge network, the port can be changed with the WEB_LISTENING_PORT environment variable.
5900 TCP Optional Port to access the application's GUI via the VNC protocol. Mapping to the host is optional if access through the VNC protocol is not wanted. For a container not using the default bridge network, the port can be changed with the VNC_LISTENING_PORT environment variable.

Changing Parameters of a Running Container

As can be seen, environment variables, volume and port mappings are all specified while creating the container.

The following steps describe the method used to add, remove or update parameter(s) of an existing container. The general idea is to destroy and re-create the container:

  1. Stop the container (if it is running):
docker stop firefox
  1. Remove the container:
docker rm firefox
  1. Create/start the container using the docker run command, by adjusting parameters as needed.

NOTE: Since all application's data is saved under the /config container folder, destroying and re-creating a container is not a problem: nothing is lost and the application comes back with the same state (as long as the mapping of the /config folder remains the same).

Docker Compose File

Here is an example of a docker-compose.yml file that can be used with Docker Compose.

Make sure to adjust according to your needs. Note that only mandatory network ports are part of the example.

version: '3'
services:
  firefox:
    image: jlesage/firefox
    ports:
      - "5800:5800"
    volumes:
      - "/docker/appdata/firefox:/config:rw"

Docker Image Versioning

Each release of a Docker image is versioned. Prior to october 2022, the semantic versioning was used as the versioning scheme.

Since then, versioning scheme changed to calendar versioning. The format used is YY.MM.SEQUENCE, where:

  • YY is the zero-padded year (relative to year 2000).
  • MM is the zero-padded month.
  • SEQUENCE is the incremental release number within the month (first release is 1, second is 2, etc).

Docker Image Update

Because features are added, issues are fixed, or simply because a new version of the containerized application is integrated, the Docker image is regularly updated. Different methods can be used to update the Docker image.

The system used to run the container may have a built-in way to update containers. If so, this could be your primary way to update Docker images.

An other way is to have the image be automatically updated with Watchtower. Watchtower is a container-based solution for automating Docker image updates. This is a "set and forget" type of solution: once a new image is available, Watchtower will seamlessly perform the necessary steps to update the container.

Finally, the Docker image can be manually updated with these steps:

  1. Fetch the latest image:
docker pull jlesage/firefox
  1. Stop the container:
docker stop firefox
  1. Remove the container:
docker rm firefox
  1. Create and start the container using the docker run command, with the the same parameters that were used when it was deployed initially.

Synology

For owners of a Synology NAS, the following steps can be used to update a container image.

  1. Open the Docker application.
  2. Click on Registry in the left pane.
  3. In the search bar, type the name of the container (jlesage/firefox).
  4. Select the image, click Download and then choose the latest tag.
  5. Wait for the download to complete. A notification will appear once done.
  6. Click on Container in the left pane.
  7. Select your Firefox container.
  8. Stop it by clicking Action->Stop.
  9. Clear the container by clicking Action->Reset (or Action->Clear if you don't have the latest Docker application). This removes the container while keeping its configuration.
  10. Start the container again by clicking Action->Start. NOTE: The container may temporarily disappear from the list while it is re-created.

unRAID

For unRAID, a container image can be updated by following these steps:

  1. Select the Docker tab.
  2. Click the Check for Updates button at the bottom of the page.
  3. Click the update ready link of the container to be updated.

User/Group IDs

When using data volumes (-v flags), permissions issues can occur between the host and the container. For example, the user within the container may not exist on the host. This could prevent the host from properly accessing files and folders on the shared volume.

To avoid any problem, you can specify the user the application should run as.

This is done by passing the user ID and group ID to the container via the USER_ID and GROUP_ID environment variables.

To find the right IDs to use, issue the following command on the host, with the user owning the data volume on the host:

id <username>

Which gives an output like this one:

uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),4(adm),24(cdrom),27(sudo),46(plugdev),113(lpadmin)

The value of uid (user ID) and gid (group ID) are the ones that you should be given the container.

Accessing the GUI

Assuming that container's ports are mapped to the same host's ports, the graphical interface of the application can be accessed via:

  • A web browser:
http://<HOST IP ADDR>:5800
  • Any VNC client:
<HOST IP ADDR>:5900

Security

By default, access to the application's GUI is done over an unencrypted connection (HTTP or VNC).

Secure connection can be enabled via the SECURE_CONNECTION environment variable. See the Environment Variables section for more details on how to set an environment variable.

When enabled, application's GUI is performed over an HTTPs connection when accessed with a browser. All HTTP accesses are automatically redirected to HTTPs.

When using a VNC client, the VNC connection is performed over SSL. Note that few VNC clients support this method. SSVNC is one of them.

SSVNC

SSVNC is a VNC viewer that adds encryption security to VNC connections.

While the Linux version of SSVNC works well, the Windows version has some issues. At the time of writing, the latest version 1.0.30 is not functional, as a connection fails with the following error:

ReadExact: Socket error while reading

However, for your convenience, an unofficial and working version is provided here:

https://github.com/jlesage/docker-baseimage-gui/raw/master/tools/ssvnc_windows_only-1.0.30-r1.zip

The only difference with the official package is that the bundled version of stunnel has been upgraded to version 5.49, which fixes the connection problems.

Certificates

Here are the certificate files needed by the container. By default, when they are missing, self-signed certificates are generated and used. All files have PEM encoded, x509 certificates.

Container Path Purpose Content
/config/certs/vnc-server.pem VNC connection encryption. VNC server's private key and certificate, bundled with any root and intermediate certificates.
/config/certs/web-privkey.pem HTTPs connection encryption. Web server's private key.
/config/certs/web-fullchain.pem HTTPs connection encryption. Web server's certificate, bundled with any root and intermediate certificates.

NOTE: To prevent any certificate validity warnings/errors from the browser or VNC client, make sure to supply your own valid certificates.

NOTE: Certificate files are monitored and relevant daemons are automatically restarted when changes are detected.

VNC Password

To restrict access to your application, a password can be specified. This can be done via two methods:

  • By using the VNC_PASSWORD environment variable.
  • By creating a .vncpass_clear file at the root of the /config volume. This file should contain the password in clear-text. During the container startup, content of the file is obfuscated and moved to .vncpass.

The level of security provided by the VNC password depends on two things:

  • The type of communication channel (encrypted/unencrypted).
  • How secure the access to the host is.

When using a VNC password, it is highly desirable to enable the secure connection to prevent sending the password in clear over an unencrypted channel.

ATTENTION: Password is limited to 8 characters. This limitation comes from the Remote Framebuffer Protocol RFC (see section 7.2.2). Any characters beyond the limit are ignored.

Reverse Proxy

The following sections contain NGINX configurations that need to be added in order to reverse proxy to this container.

A reverse proxy server can route HTTP requests based on the hostname or the URL path.

Routing Based on Hostname

In this scenario, each hostname is routed to a different application/container.

For example, let's say the reverse proxy server is running on the same machine as this container. The server would proxy all HTTP requests sent to firefox.domain.tld to the container at 127.0.0.1:5800.

Here are the relevant configuration elements that would be added to the NGINX configuration:

map $http_upgrade $connection_upgrade {
	default upgrade;
	''      close;
}

upstream docker-firefox {
	# If the reverse proxy server is not running on the same machine as the
	# Docker container, use the IP of the Docker host here.
	# Make sure to adjust the port according to how port 5800 of the
	# container has been mapped on the host.
	server 127.0.0.1:5800;
}

server {
	[...]

	server_name firefox.domain.tld;

	location / {
	        proxy_pass http://docker-firefox;
	}

	location /websockify {
		proxy_pass http://docker-firefox;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection $connection_upgrade;
		proxy_read_timeout 86400;
	}
}

Routing Based on URL Path

In this scenario, the hostname is the same, but different URL paths are used to route to different applications/containers.

For example, let's say the reverse proxy server is running on the same machine as this container. The server would proxy all HTTP requests for server.domain.tld/firefox to the container at 127.0.0.1:5800.

Here are the relevant configuration elements that would be added to the NGINX configuration:

map $http_upgrade $connection_upgrade {
	default upgrade;
	''      close;
}

upstream docker-firefox {
	# If the reverse proxy server is not running on the same machine as the
	# Docker container, use the IP of the Docker host here.
	# Make sure to adjust the port according to how port 5800 of the
	# container has been mapped on the host.
	server 127.0.0.1:5800;
}

server {
	[...]

	location = /firefox {return 301 $scheme://$http_host/firefox/;}
	location /firefox/ {
		proxy_pass http://docker-firefox/;
		location /firefox/websockify {
			proxy_pass http://docker-firefox/websockify/;
			proxy_http_version 1.1;
			proxy_set_header Upgrade $http_upgrade;
			proxy_set_header Connection $connection_upgrade;
			proxy_read_timeout 86400;
		}
	}
}

Shell Access

To get shell access to the running container, execute the following command:

docker exec -ti CONTAINER sh

Where CONTAINER is the ID or the name of the container used during its creation.

Allowing the membarrier System Call

To properly work, recent versions of Firefox need the membarrier system call. Without it, tabs would frequently crash.

Docker uses seccomp profile to restrict system calls available to the container. Before Docker version 20.10.0, the membarrier system call was not allowed in the default profile. If you run a such version, you can use one of the following solutions, from the most to the least secure, to provide the container permission to use this sytem call:

  1. Run the container with a custom seccomp profile allowing the membarrier system call. The latest official seccomp profile can be used. Download the file and then add the following parameter when creating the container: --security-opt seccomp=/path/to/seccomp_profile.json.
  2. Run the container without the default seccomp profile (thus allowing all system calls). Use the following parameter when creating the container: --security-opt seccomp=unconfined.
  3. Run the container in privileged mode. This effectively disables usage of seccomp. Add the --privileged parameter when creating the container.

Sound Support

For Firefox to be able to use the audio device available on the host, /dev/snd must be exposed to the container by adding the --device /dev/snd parameter to the docker run command.

Setting Firefox Preferences Via Environment Variables

Firefox preferences can be set via environment variables passed to the container. During the startup, a script process all these variables and modify the preference file accordingly.

The name of the environment variable must start with FF_PREF_, followed by a string of your choice. For example, FF_PREF_MY_PREF is a valid name.

The content of the variable should be in the format NAME=VAL, where NAME is the name of the preference (as found in the about:config page) and VAL is its value. A value can be one of the following types:

  • string
  • integer
  • boolean

It is important to note that a value of type string should be surrounded by double quotes. Other types don't need them.

For example, to set the network.proxy.http preference, one would pass the environment variable to the container by adding the following argument to the docker run command:

-e "FF_PREF_HTTP_PROXY=network.proxy.http=\"proxy.example.com\""

If a preference needs to be removed, its value should be set to UNSET. For example:

-e "FF_PREF_HTTP_PROXY=network.proxy.http=UNSET"

NOTE: This is an advanced usage and it is recommended to set preferences via Firefox directly.

Troubleshooting

Crashes

If Firefox is crashing frequently, make sure that:

  • The membarrier system call is not blocked by Docker. See the Allowing the membarrier System Call for more details.
  • Make sure the kernel of your Linux distribution is up-to-date.

Support or Contact

Having troubles with the container or have questions? Please create a new issue.

For other great Dockerized applications, see https://jlesage.github.io/docker-apps.

docker-firefox's People

Contributors

jlesage avatar neboer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-firefox's Issues

Error - Unsupported file format

[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
stored passwd in file: /root/.vncpass
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] check-snd.sh: executing...
[cont-init.d] check-snd.sh: sound not supported: device /dev/snd not exposed to the container.
[cont-init.d] check-snd.sh: exited 0.
[cont-init.d] firefox-set-prefs-from-env.sh: executing...
[cont-init.d] firefox-set-prefs-from-env.sh: exited 0.
[cont-init.d] firefox.sh: executing...
Error: unsupported file format

How to set environment variables in docker-compose.yaml?

I am struggeling with writing my docker-compose and set my resolution.
Currently it looks like this:

 version: '3'
services:
  firefox:
    container_name: firefox
    image: jlesage/firefox
    ports:
      - "5800:5800"
    volumes:
      - "/opt/firefox:/config:rw"
    restart: unless-stopped
    shm_size: '1g'
    build: .
    environment:
      - DISPLAY_WIDTH:2560
      - DISPLAY_HEIGHT:1440`

is this correct?

Firefox older versions help

This container works great! Thank you for creating it!

Would you know how I could get an older version like FF 52.0, to work instead?

I am trying to run an older browser with Java 1.6 and 1.7 for some legacy hardware. This container and how it is accessed is absolutely perfect for the job.

I am not sure where to start, given the complexity of the container and all of the pre/post scripting.

Any advice or pointers would be appreciated.

Puppeteer Websocket connection Error

hello

i have a issue when i want to connect via websocket

my code :

const puppeteer = require('puppeteer-firefox');

(async () => {
try {
const browser = await puppeteer.connect({ browserWSEndpoint: 'ws://localhost:5800'});
const page = await browser.newPage();

    await page.goto('http://www.example.com/');
    const data = await page.screenshot();
    browser.close();
    
} catch(e ) {
    console.log(e)
}

})();

I got that message :

error: Error: Unexpected server response: 200

IPSec VPN

Hi, any idea on how to run this on top of an IPSec connection?

Active Directory Integration

Hi ! Thanks for the Container, it is realy great.

i want to create container with active directory username and password (credentials) and i want same user login to his container from web interface by his active directory username and password(credentials).
do u have any idea to achieve these goals?

there are some problems too:

  1. maximum range of vnc password depending on RFC buffer.
  2. vnc or web ineterface doesnt ask for username (even username that created with user_id variable)

regards,

Open Links in Tabs instead of New Windows

The setting "open links in tabs instead of new windows" doesn't always work. This wouldn't be an issue, but I'm not able to close the new window. Instead, I have to close all windows or reboot the container. If I leave the window open in the background, the container memory utilization will grow.

Unable to spawn /etc/logmonitor/notifications.d/shm_size/filter: Permission denied

When I try to run docker-compose up, I get an error: warning: unable to spawn /etc/logmonitor/notifications.d/shm_size/filter: Permission denied

My docker-compose.yml file:
version: '3'
services:
firefox1:
build:
context: .
args:
shm-size: 2g
ports:
- "5801:5800"
volumes:
- "/docker/appdata/firefox1:/config:rw"
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 256M
environment:
KEEP_APP_RUNNING: 1

And by just running the docker run from README.md:
docker run -d \ --name=firefox \ -p 5800:5800 \ -v /docker/appdata/firefox:/config:rw \ --shm-size 2g \ jlesage/firefox

everything work fine.

Full Screen

Hello ! Thanks for this container, really cool.

I think FullScreen is not working, Firefox still in the 1280x720 ( HD resolution )...

Is possible to run with entire browser screen ?

Password Prompt Dialog Not Working on iPad/iPhone

Hi,

First I want to say, I love your firefox docker! I have tried quite a few, and you are the best :)
However, when I tried to access via my iphone/iPad. I cannot access .

I use the password authentication. No matter I use Safari, Firefox, or Chrome on my iPad/iphone. the password dialog just won't open.

Thanks!

Sound - Pulseaudio over TCP

Hi, I would like to congratulate for your work, is amazing and runs smoothly!

Recently I had to work with this image to enable audio using Pulseaudio over a TCP socket (instead than mapping /dev/snd), but I was not able to accomplish it.
I tried to install Pulseaudio and set PULSE_SERVER=tcp:MY_IP:MY_PORT but nothing happens (and perform pactl load-module module-native-protocol-tcp port=MY_PORT auth-ip-acl=DOCKER_IP in the server).

Using a complete ubuntu environment docker it works, but that would not be the best choice for me since I just need the software you use + Pulseaudio, not the entire session.

Do you have some advice? Thanks in advance.

High RAM Consumption

I am using the default docker command which is found on the repo. However, it is using all of the RAM on my VPS. I have 10Gb of RAM on my server and the app is using all of it. Why?

build errors

Hi, I'm trying to build this docker so far without any modification. Later I would like to make some modifications, but for now I get a problem and the build fails.
These are the errors I get:

Executing fontconfig-2.13.1-r0.trigger
Error relocating /usr/lib/libexpat.so.1: getrandom: symbol not found
Error relocating /lib/libuuid.so.1: getrandom: symbol not found
ERROR: fontconfig-2.13.1-r0.trigger: script exited with error 127
Executing gtk-update-icon-cache-2.24.32-r1.trigger
Error relocating /lib/libmount.so.1: getrandom: symbol not found
Error relocating /lib/libblkid.so.1: getrandom: symbol not found
Error relocating /lib/libuuid.so.1: getrandom: symbol not found
ERROR: gtk-update-icon-cache-2.24.32-r1.trigger: script exited with error 127
Executing mkfontscale-1.1.3-r0.trigger
Executing mkfontdir-1.0.7-r1.trigger
2 errors; 356 MiB in 161 packages
The command '/bin/sh -c add-pkg desktop-file-utils adwaita-icon-theme ttf-dejavu ffmpeg-libs xdotool' returned a non-zero code: 2

I've tryed to search with google and to have a look at the Dockerfile, sorry, I'm also new to Docker. I really can't understand what's the problem. Error 127 is usually returned by the shell when a command is not found or is not executable, but that's all know.
Thanks anyway for this fantastic Docker.

Possible to open tabs from docker shell?

Hi, is it possible to open a tab from the docker shell? In a regular environment running firefox google.com would open a new tab in the current instance of firefox but that doesnt seem to work :(

Use latest version of firefox

First, thanks for your docker Firefox, it rocks!
I tried to use the FIREFOX_VERSION=66.0.4-rc0 to have a most recent version of FF but without success. This package is in the repo Alpine Testing and you add it in the dockerfile:

RUN \
    add-pkg --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
            --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
            --upgrade firefox=${FIREFOX_VERSION}

I checked logs in the container and there is a lot of useful information but nothing on this part. It will great to have a log on the version of Firefox selected from the environment variable and the list of all FF versions available.

For me, to have the (al)most recent version of Firefox is really important as a lot of security fixes have been applied.

Build problems

Hi jselage, and again, thanks for the great package.

I'm trying to run this behind a vpn connection, as such I need to rebuild the package with vpnc already installed. I was able to run it successfully by installing everything inside a running image, however, when I try to change the Dockerfile to build this from scratch, I'm getting the following errors (I removed the firefox version and added upgrade firefox-esr):

Step 1/22 : FROM jlesage/baseimage-gui:alpine-3.9-v3.5.2

 ---> 3b4945b380ef
Step 2/22 : ARG DOCKER_IMAGE_VERSION=unknown
 ---> Running in 42646660b8a7
Removing intermediate container 42646660b8a7
 ---> d8e97fb8ce20
Step 3/22 : ARG FIREFOX_VERSION=68.3.0-r0
 ---> Running in 2af525fdeace
Removing intermediate container 2af525fdeace
 ---> 929fa75ce1b4
Step 4/22 : ARG JSONLZ4_VERSION=c4305b8
 ---> Running in ea49d2e3fdd3
Removing intermediate container ea49d2e3fdd3
 ---> e13b7b30d0e0
Step 5/22 : ARG LZ4_VERSION=1.8.1.2
 ---> Running in a82b0465dc2d
Removing intermediate container a82b0465dc2d
 ---> 0c85d9249c59
Step 6/22 : ARG JSONLZ4_URL=https://github.com/avih/dejsonlz4/archive/${JSONLZ4_VERSION}.tar.gz
 ---> Running in da322830eb60
Removing intermediate container da322830eb60
 ---> 2a86a81351a9
Step 7/22 : ARG LZ4_URL=https://github.com/lz4/lz4/archive/v${LZ4_VERSION}.tar.gz
 ---> Running in ad81081097e9
Removing intermediate container ad81081097e9
 ---> ace4a61418d6
Step 8/22 : WORKDIR /tmp
 ---> Running in 6c2bf2a29243
Removing intermediate container 6c2bf2a29243
 ---> c3b37733b807
Step 9/22 : RUN     echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories &&     echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories &&     echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories &&     apk update
 ---> Running in ce33a77f249b
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
v3.9.4-235-g5857b8ca03 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.4-230-ga73893015b [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
v3.11.0_rc3-21-g8fe3109377 [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v3.11.0_rc3-22-g9800a38da9 [http://dl-cdn.alpinelinux.org/alpine/edge/community]
v3.11.0_rc3-16-gd6a8110111 [http://dl-cdn.alpinelinux.org/alpine/edge/testing]
OK: 25111 distinct packages available
Removing intermediate container ce33a77f249b
 ---> adcf986566b1
Step 10/22 : RUN     add-pkg --repository http://dl-cdn.alpinelinux.org/alpine/edge/main             --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing             --repository http://dl-cdn.alpinelinux.org/alpine/edge/community             --upgrade firefox-esr
 ---> Running in f441e098b553
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/73) Upgrading busybox (1.29.3-r10 -> 1.31.1-r7)
Executing busybox-1.31.1-r7.post-upgrade
(2/73) Upgrading libcrypto1.1 (1.1.1b-r1 -> 1.1.1d-r2)
(3/73) Upgrading libssl1.1 (1.1.1b-r1 -> 1.1.1d-r2)
(4/73) Upgrading libtls-standalone (2.7.4-r6 -> 2.9.1-r0)
(5/73) Upgrading ssl_client (1.29.3-r10 -> 1.31.1-r7)
(6/73) Upgrading zlib (1.2.11-r1 -> 1.2.11-r3)
(7/73) Upgrading libxau (1.0.8-r3 -> 1.0.9-r0)
(8/73) Upgrading libbsd (0.8.6-r2 -> 0.10.0-r0)
(9/73) Upgrading libxdmcp (1.1.2-r5 -> 1.1.3-r0)
(10/73) Upgrading libxcb (1.13-r2 -> 1.13.1-r0)
(11/73) Upgrading libx11 (1.6.7-r0 -> 1.6.9-r0)
(12/73) Upgrading libxcomposite (0.4.4-r2 -> 0.4.5-r0)
(13/73) Upgrading libxdamage (1.1.4-r2 -> 1.1.5-r0)
(14/73) Upgrading libxext (1.3.3-r3 -> 1.3.4-r0)
(15/73) Upgrading libice (1.0.9-r3 -> 1.0.10-r0)
(16/73) Upgrading libuuid (2.33-r0 -> 2.34-r1)
(17/73) Upgrading libsm (1.2.2-r2 -> 1.2.3-r0)
(18/73) Upgrading libxt (1.1.5-r2 -> 1.2.0-r0)
(19/73) Installing alsa-lib (1.2.1.2-r0)
(20/73) Upgrading libintl (0.19.8.1-r4 -> 0.20.1-r2)
(21/73) Upgrading libblkid (2.33-r0 -> 2.34-r1)
(22/73) Upgrading libmount (2.33-r0 -> 2.34-r1)
(23/73) Upgrading pcre (8.42-r1 -> 8.43-r0)
(24/73) Upgrading glib (2.58.1-r2 -> 2.62.3-r0)
(25/73) Installing atk (2.34.1-r0)
(26/73) Upgrading expat (2.2.6-r0 -> 2.2.9-r0)
(27/73) Upgrading libbz2 (1.0.6-r6 -> 1.0.8-r1)
(28/73) Upgrading libpng (1.6.35-r0 -> 1.6.37-r1)
(29/73) Upgrading freetype (2.9.1-r2 -> 2.10.1-r0)
(30/73) Upgrading fontconfig (2.13.1-r0 -> 2.13.1-r2)
(31/73) Upgrading pixman (0.34.0-r6 -> 0.38.4-r0)
(32/73) Upgrading cairo (1.16.0-r1 -> 1.16.0-r2)
(33/73) Installing cairo-gobject (1.16.0-r2)
(34/73) Installing dbus-libs (1.12.16-r2)
(35/73) Installing dbus-glib (0.110-r0)
(36/73) Installing libevent (2.1.11-r0)
(37/73) Upgrading libgcc (8.3.0-r0 -> 9.2.0-r3)
(38/73) Installing hicolor-icon-theme (0.17-r1)
(39/73) Upgrading tiff (4.0.10-r0 -> 4.1.0-r0)
(40/73) Upgrading gdk-pixbuf (2.36.11-r2 -> 2.40.0-r0)
(41/73) Installing gtk-update-icon-cache (2.24.32-r1)
(42/73) Upgrading libxcursor (1.1.15-r1 -> 1.2.0-r0)
(43/73) Upgrading libxrandr (1.5.1-r2 -> 1.5.2-r0)
(44/73) Installing at-spi2-core (2.34.0-r0)
(45/73) Installing at-spi2-atk (2.34.1-r0)
(46/73) Installing avahi-libs (0.7-r4)
(47/73) Installing gmp (6.1.2-r1)
(48/73) Installing nettle (3.5.1-r0)
(49/73) Installing p11-kit (0.23.18.1-r0)
(50/73) Installing libtasn1 (4.15.0-r0)
(51/73) Installing libunistring (0.9.10-r0)
(52/73) Installing gnutls (3.6.10-r0)
(53/73) Installing cups-libs (2.2.12-r1)
(54/73) Installing libepoxy (1.5.4-r0)
(55/73) Upgrading fribidi (1.0.5-r0 -> 1.0.8-r0)
(56/73) Upgrading graphite2 (1.3.12-r1 -> 1.3.13-r1)
(57/73) Upgrading harfbuzz (2.2.0-r0 -> 2.6.4-r0)
(58/73) Upgrading libxft (2.3.2-r3 -> 2.3.3-r0)
(59/73) Upgrading pango (1.42.4-r0 -> 1.44.7-r0)
(60/73) Installing wayland-libs-client (1.17.0-r0)
(61/73) Installing wayland-libs-cursor (1.17.0-r0)
(62/73) Installing wayland-libs-egl (1.17.0-r0)
(63/73) Installing libxkbcommon (0.9.1-r0)
(64/73) Installing gtk+3.0 (3.24.13-r0)
Executing gtk+3.0-3.24.13-r0.post-install
Error relocating /lib/libmount.so.1: secure_getenv: symbol not found
Error relocating /usr/lib/libxkbcommon.so.0: secure_getenv: symbol not found
Error relocating /lib/libblkid.so.1: secure_getenv: symbol not found
Error relocating /lib/libmount.so.1: secure_getenv: symbol not found
Error relocating /lib/libblkid.so.1: secure_getenv: symbol not found
ERROR: gtk+3.0-3.24.13-r0.post-install: script exited with error 127
(65/73) Installing gtk+2.0 (2.24.32-r1)
Executing gtk+2.0-2.24.32-r1.post-install
Error relocating /lib/libmount.so.1: secure_getenv: symbol not found
Error relocating /lib/libblkid.so.1: secure_getenv: symbol not found
Error relocating /lib/libmount.so.1: secure_getenv: symbol not found
Error relocating /lib/libblkid.so.1: secure_getenv: symbol not found
ERROR: gtk+2.0-2.24.32-r1.post-install: script exited with error 127
(66/73) Installing libstdc++ (9.2.0-r3)
(67/73) Installing icu-libs (64.2-r0)
(68/73) Installing nspr (4.24-r0)
(69/73) Installing sqlite-libs (3.30.1-r1)
(70/73) Installing nss (3.48-r0)
(71/73) Installing firefox-esr (68.3.0-r0)
(72/73) Purging mkfontdir (1.0.7-r1)
(73/73) Upgrading mkfontscale (1.1.3-r1 -> 1.2.1-r1)
Executing busybox-1.31.1-r7.trigger
Executing glib-2.62.3-r0.trigger
Executing fontconfig-2.13.1-r2.trigger
Executing gdk-pixbuf-2.40.0-r0.trigger
Error relocating /lib/libmount.so.1: secure_getenv: symbol not found
Error relocating /lib/libblkid.so.1: secure_getenv: symbol not found
ERROR: gdk-pixbuf-2.40.0-r0.trigger: script exited with error 127
Executing gtk-update-icon-cache-2.24.32-r1.trigger
Error relocating /lib/libmount.so.1: secure_getenv: symbol not found
Error relocating /lib/libblkid.so.1: secure_getenv: symbol not found
ERROR: gtk-update-icon-cache-2.24.32-r1.trigger: script exited with error 127
Executing mkfontscale-1.2.1-r1.trigger
2 errors; 292 MiB in 133 packages
The command '/bin/sh -c add-pkg --repository http://dl-cdn.alpinelinux.org/alpine/edge/main             --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing             --repository http://dl-cdn.alpinelinux.org/alpine/edge/community             --upgrade firefox-esr' returned a non-zero code: 2

Seems to be a problem with installing gtk-related stuff... any ideas?

Permission errors on podman

[root@localhost ~]# podman run --rm -it -p 5800:5800 --name=firefox -v /tmp/firefox:/config:z --shm-size 2g jlesage/firefox
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] check-snd.sh: executing...
[cont-init.d] check-snd.sh: sound not supported: device /dev/snd not exposed to the container.
[cont-init.d] check-snd.sh: exited 0.
[cont-init.d] firefox-set-prefs-from-env.sh: executing...
[cont-init.d] firefox-set-prefs-from-env.sh: exited 0.
[cont-init.d] firefox.sh: executing...
[cont-init.d] firefox.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise s6-fdholderd: warning: unable to spawn ./run - waiting 10 seconds
s6-svwait: fatal: timed out
[services.d] starting certsmonitor...
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise certsmonitor: warning: unable to spawn ./run - waiting 10 seconds
s6-svwait: fatal: timed out
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise s6-fdholderd: warning: unable to spawn ./run - waiting 10 seconds
[services.d] starting nginx...
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise nginx: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise certsmonitor: warning: unable to spawn ./run - waiting 10 seconds
s6-svwait: fatal: timed out
[services.d] starting xvfb...
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise xvfb: warning: unable to spawn ./run - waiting 10 seconds
^Cs6-svscan: warning: unable to spawn .s6-svscan/SIGINT: Permission denied
^Cs6-svscan: warning: unable to spawn .s6-svscan/SIGINT: Permission denied
^Cs6-svscan: warning: unable to spawn .s6-svscan/SIGINT: Permission denied
^Cs6-svscan: warning: unable to spawn .s6-svscan/SIGINT: Permission denied

Error for docker synology

The container does not want to run.
Error message

Start container firefox failed OCI runtime create failed container with id exists

contact for commercials

Hi,

Can I have your contact email or any direct message ? Need to discuss some commercials

Thanks

Update Firefox

Hi,
thanks for this great image! I use it daily without any problems.
Could you please update Firefox to the latest version?

How to add a font type?

I tried to change the firefox language to chinese simplified, but it didn't work well because less of chinese font in docker container.
How could I add a font into docker container?

How does is it give output to the browser, and how does it receive input from the user?

Sorry, this isn't an issue, I'm just trying to understand how it streams the Firefox browser to the localhost webpage, and how it receives input from the user. I would like to modify/extend this functionality for a specific use case. I'm not very familiar with docker, so I can't figure out where that functionality comes from. Any tips would be great. Thanks for the work you've done!

Can someone explain how to access the local file system via this browser?

Basically, I am sitting in front of my workstation with a browser and am browsing to my docker-firefox browser and would like to upload a file buzt the upload mask only has accessto the "local" file system of the docker container.

Is there a way to give it access to my workstation's fiel system?

Hope I explained that in a way to convey the right question.

Fullscreen toggle on the navigation bar

Hi, thank you for this awesome container... it works very well on old iPads and allows me to use newer sites like Home Assistant and Polymer which is NOT supported on iOS 9.3.5 anymore.

I have an enhancement if possible: pressing the hamburger inside of the container's Firefox and next to the zoom buttons there's a full-screen (F11) button. Once you click that, it's impossible to click F11 on an iPad and I have to go to a computer to get it out of Firefox's full-screen mode. Would it be possible to have an F11 button in the navigation bar?

All the best!

Run tor browser

Can you add support tor browser? Or may be create new image.

audio on the host instead of the client

Hi
Thank you for your hard work in creating this docker. I have been trying to use the your docker to open up a remote firefox session in my home network, but have been running into an issue where sound is not coming across to the remote machine even though sound is enabled on the host computer. On the remote computer I will connect to the host in a browser using the URL http://192.168.1.222:5800. The inner firefox browser will come up. In the inner firefox browser I then will type the URL youtube.com. I will then select a link on youtube to play a video. The video plays correctly, however the audio plays on my host computer instead of the remote computer.
Is there anything missing from my configuration?
Here is my configuration

Host computer
linux laptop with the latest updates to ubuntu 18.04, docker, pulseaudio, paprefs, pavucontrol installed
IP address: 192.168.1.222
docker run command:
docker run -p 5800:5800 --shm-size 2g --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix jlesage/firefox

Remote computer
Macbook pro with macos mojave
safari url to invoke the remote container:
http://192.168.1.222:5800

docker output on the host
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] check-snd.sh: executing...
[cont-init.d] check-snd.sh: sound device group 29.
[cont-init.d] check-snd.sh: exited 0.
[cont-init.d] firefox.sh: executing...
[cont-init.d] firefox.sh: generating machine-id...
[cont-init.d] firefox.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
[services.d] starting nginx...
[services.d] starting certsmonitor...
[nginx] starting...
[services.d] starting xvfb...
[xvfb] starting...
[certsmonitor] disabling service: secure connection not enabled.
[services.d] starting statusmonitor...
[services.d] starting openbox...
[statusmonitor] starting...
[openbox] starting...
[services.d] starting logmonitor...
[services.d] starting x11vnc...
[logmonitor] starting...
[services.d] starting app...
[x11vnc] starting...
09/12/2018 19:31:01 passing arg to libvncserver: -rfbport
09/12/2018 19:31:01 passing arg to libvncserver: 5900
09/12/2018 19:31:01 passing arg to libvncserver: -rfbportv6
09/12/2018 19:31:01 passing arg to libvncserver: -1
09/12/2018 19:31:01 passing arg to libvncserver: -httpportv6
09/12/2018 19:31:01 passing arg to libvncserver: -1
09/12/2018 19:31:01 passing arg to libvncserver: -desktop
09/12/2018 19:31:01 passing arg to libvncserver: Firefox
09/12/2018 19:31:01 x11vnc version: 0.9.14 lastmod: 2015-11-14 pid: 889
09/12/2018 19:31:01 Using X display :0
09/12/2018 19:31:01 rootwin: 0x43 reswin: 0x400001 dpy: 0xa4f49a00
09/12/2018 19:31:01
09/12/2018 19:31:01 ------------------ USEFUL INFORMATION ------------------
[app] starting Firefox...
[services.d] done.
09/12/2018 19:31:01 X DAMAGE available on display, using it for polling hints.
09/12/2018 19:31:01 To disable this behavior use: '-noxdamage'
09/12/2018 19:31:01
09/12/2018 19:31:01 Most compositing window managers like 'compiz' or 'beryl'
09/12/2018 19:31:01 cause X DAMAGE to fail, and so you may not see any screen
09/12/2018 19:31:01 updates via VNC. Either disable 'compiz' (recommended) or
09/12/2018 19:31:01 supply the x11vnc '-noxdamage' command line option.
09/12/2018 19:31:01 X COMPOSITE available on display, using it for window polling.
09/12/2018 19:31:01 To disable this behavior use: '-noxcomposite'
09/12/2018 19:31:01
09/12/2018 19:31:01 Wireframing: -wireframe mode is in effect for window moves.
09/12/2018 19:31:01 If this yields undesired behavior (poor response, painting
09/12/2018 19:31:01 errors, etc) it may be disabled:
09/12/2018 19:31:01 - use '-nowf' to disable wireframing completely.
09/12/2018 19:31:01 - use '-nowcr' to disable the Copy Rectangle after the
09/12/2018 19:31:01 moved window is released in the new position.
09/12/2018 19:31:01 Also see the -help entry for tuning parameters.
09/12/2018 19:31:01 You can press 3 Alt_L's (Left "Alt" key) in a row to
09/12/2018 19:31:01 repaint the screen, also see the -fixscreen option for
09/12/2018 19:31:01 periodic repaints.
09/12/2018 19:31:01 GrabServer control via XTEST.
09/12/2018 19:31:01
09/12/2018 19:31:01 Scroll Detection: -scrollcopyrect mode is in effect to
09/12/2018 19:31:01 use RECORD extension to try to detect scrolling windows
09/12/2018 19:31:01 (induced by either user keystroke or mouse input).
09/12/2018 19:31:01 If this yields undesired behavior (poor response, painting
09/12/2018 19:31:01 errors, etc) it may be disabled via: '-noscr'
09/12/2018 19:31:01 Also see the -help entry for tuning parameters.
09/12/2018 19:31:01 You can press 3 Alt_L's (Left "Alt" key) in a row to
09/12/2018 19:31:01 repaint the screen, also see the -fixscreen option for
09/12/2018 19:31:01 periodic repaints.
09/12/2018 19:31:01
09/12/2018 19:31:01 XKEYBOARD: number of keysyms per keycode 7 is greater
09/12/2018 19:31:01 than 4 and 51 keysyms are mapped above 4.
09/12/2018 19:31:01 Automatically switching to -xkb mode.
09/12/2018 19:31:01 If this makes the key mapping worse you can
09/12/2018 19:31:01 disable it with the "-noxkb" option.
09/12/2018 19:31:01 Also, remember "-remap DEAD" for accenting characters.
09/12/2018 19:31:01
09/12/2018 19:31:01 X FBPM extension not supported.
09/12/2018 19:31:01 X display is not capable of DPMS.
09/12/2018 19:31:01 --------------------------------------------------------
09/12/2018 19:31:01
09/12/2018 19:31:01 Default visual ID: 0x21
09/12/2018 19:31:01 Read initial data from X display into framebuffer.
09/12/2018 19:31:01 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
09/12/2018 19:31:01
09/12/2018 19:31:01 X display :0 is 32bpp depth=24 true color
9/12/2018 19:31:01
09/12/2018 19:31:01 Listening for VNC connections on TCP port 5900
09/12/2018 19:31:01
09/12/2018 19:31:01 Xinerama is present and active (e.g. multi-head).
09/12/2018 19:31:01 Xinerama: number of sub-screens: 1
09/12/2018 19:31:01 Xinerama: no blackouts needed (only one sub-screen)
09/12/2018 19:31:01
09/12/2018 19:31:01 fb read rate: 1438 MB/sec
09/12/2018 19:31:01 fast read: reset -wait ms to: 10
09/12/2018 19:31:01 fast read: reset -defer ms to: 10
09/12/2018 19:31:01 The X server says there are 10 mouse buttons.
09/12/2018 19:31:01 screen setup finished.
09/12/2018 19:31:01

The VNC desktop is: e726fed66d86:0
PORT=5900

09/12/2018 19:31:46 Got connection from client 127.0.0.1
09/12/2018 19:31:46 other clients:
09/12/2018 19:31:46 Got 'ws' WebSockets handshake
09/12/2018 19:31:46 Got protocol: binary
09/12/2018 19:31:46 - webSocketsHandshake: using binary/raw encoding
09/12/2018 19:31:46 - WebSockets client version hybi-13
09/12/2018 19:31:46 Disabled X server key autorepeat.
09/12/2018 19:31:46 to force back on run: 'xset r on' (3 times)
09/12/2018 19:31:46 incr accepted_client=1 for 127.0.0.1:49258 sock=10
09/12/2018 19:31:47 created xdamage object: 0x40002c
09/12/2018 19:31:47 Client Protocol Version 3.8
09/12/2018 19:31:47 Protocol version sent 3.8, using 3.8
09/12/2018 19:31:47 rfbProcessClientSecurityType: executing handler for type 1
09/12/2018 19:31:47 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
09/12/2018 19:31:47 client_set_net: 127.0.0.1 0.0001
09/12/2018 19:31:47 Pixel format for client 127.0.0.1:
09/12/2018 19:31:47 32 bpp, depth 24, little endian
09/12/2018 19:31:47 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
09/12/2018 19:31:47 no translation needed
09/12/2018 19:31:47 Enabling NewFBSize protocol extension for client 127.0.0.1
09/12/2018 19:31:47 Enabling full-color cursor updates for client 127.0.0.1
09/12/2018 19:31:47 Using image quality level 6 for client 127.0.0.1
09/12/2018 19:31:47 Using JPEG subsampling 0, Q79 for client 127.0.0.1
09/12/2018 19:31:47 Using compression level 9 for client 127.0.0.1
09/12/2018 19:31:47 Enabling LastRect protocol extension for client 127.0.0.1
09/12/2018 19:31:47 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
09/12/2018 19:31:47 Using tight encoding for client 127.0.0.1
09/12/2018 19:31:52 client 1 network rate 16.1 KB/sec (1378.7 eff KB/sec)
09/12/2018 19:31:52 client 1 latency: 41.7 ms
09/12/2018 19:31:52 dt1: 0.0190, dt2: 2.8554 dt3: 0.0417 bytes: 45930
09/12/2018 19:31:52 link_rate: LR_DIALUP - 41 ms, 16 KB/s
09/12/2018 19:31:53 copy_tiles: allocating first_line at size 41
09/12/2018 19:31:56 created selwin: 0x40002d
09/12/2018 19:31:56 called initialize_xfixes()
09/12/2018 19:34:49 increased wireframe timeouts for slow network connection.
09/12/2018 19:34:49 netrate: 16 KB/sec, latency: 41 ms
09/12/2018 19:38:18 client_count: 0
09/12/2018 19:38:18 Restored X server key autorepeat to: 1
09/12/2018 19:38:18 Client 127.0.0.1 gone
09/12/2018 19:38:18 Statistics events Transmit/ RawEquiv ( saved)
09/12/2018 19:38:18 ServerCutText : 2 | 70/ 70 ( 0.0%)
09/12/2018 19:38:18 FramebufferUpdate : 606 | 0/ 0 ( 0.0%)
09/12/2018 19:38:18 LastRect : 92 | 1104/ 1104 ( 0.0%)
09/12/2018 19:38:18 tight : 2006 | 1105848/ 46409736 ( 97.6%)
09/12/2018 19:38:18 RichCursor : 1 | 1374/ 1374 ( 0.0%)
09/12/2018 19:38:18 TOTALS : 2707 | 1108396/ 46412284 ( 97.6%)
09/12/2018 19:38:18 Statistics events Received/ RawEquiv ( saved)
09/12/2018 19:38:18 KeyEvent : 58 | 464/ 464 ( 0.0%)
09/12/2018 19:38:18 PointerEvent : 2164 | 12984/ 12984 ( 0.0%)
09/12/2018 19:38:18 FramebufferUpdate : 606 | 6060/ 6060 ( 0.0%)
09/12/2018 19:38:18 SetEncodings : 1 | 56/ 56 ( 0.0%)
09/12/2018 19:38:18 SetPixelFormat : 1 | 20/ 20 ( 0.0%)
09/12/2018 19:38:18 TOTALS : 2830 | 19584/ 19584 ( 0.0%)
09/12/2018 19:38:18 destroyed xdamage object: 0x40002c
09/12/2018 19:41:56 Got connection from client 127.0.0.1
09/12/2018 19:41:56 other clients:
09/12/2018 19:41:56 Got 'ws' WebSockets handshake
09/12/2018 19:41:56 Got protocol: binary
09/12/2018 19:41:56 - webSocketsHandshake: using binary/raw encoding
09/12/2018 19:41:56 - WebSockets client version hybi-13
09/12/2018 19:41:56 Disabled X server key autorepeat.
09/12/2018 19:41:56 to force back on run: 'xset r on' (3 times)
09/12/2018 19:41:56 incr accepted_client=2 for 127.0.0.1:49468 sock=10
09/12/2018 19:41:57 created xdamage object: 0x40002e
09/12/2018 19:41:58 Client Protocol Version 3.8
09/12/2018 19:42:01 Pixel format for client 127.0.0.1:
09/12/2018 19:42:01 32 bpp, depth 24, little endian
09/12/2018 19:42:01 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
09/12/2018 19:42:01 no translation needed
09/12/2018 19:42:01 Enabling NewFBSize protocol extension for client 127.0.0.1
09/12/2018 19:42:01 Enabling full-color cursor updates for client 127.0.0.1
09/12/2018 19:42:01 Using image quality level 6 for client 127.0.0.1
09/12/2018 19:42:01 Using JPEG subsampling 0, Q79 for client 127.0.0.1
09/12/2018 19:42:01 Using compression level 9 for client 127.0.0.1
09/12/2018 19:42:01 Enabling LastRect protocol extension for client 127.0.0.1
09/12/2018 19:42:01 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
09/12/2018 19:42:01 Using tight encoding for client 127.0.0.1
09/12/2018 19:42:01 client_set_net: 127.0.0.1 0.0001
09/12/2018 19:42:36 got closure, reason 1001
09/12/2018 19:42:36 rfbProcessClientNormalMessage: read: Connection reset by peer
09/12/2018 19:42:36 client_count: 0
09/12/2018 19:42:36 Restored X server key autorepeat to: 1
09/12/2018 19:42:36 Client 127.0.0.1 gone
09/12/2018 19:42:36 Statistics events Transmit/ RawEquiv ( saved)
09/12/2018 19:42:36 FramebufferUpdate : 32 | 0/ 0 ( 0.0%)
09/12/2018 19:42:36 LastRect : 2 | 24/ 24 ( 0.0%)
09/12/2018 19:42:36 tight : 60 | 11283/ 4089936 ( 99.7%)
09/12/2018 19:42:36 RichCursor : 1 | 1374/ 1374 ( 0.0%)
09/12/2018 19:42:36 TOTALS : 95 | 12681/ 4091334 ( 99.7%)
09/12/2018 19:42:36 Statistics events Received/ RawEquiv ( saved)
09/12/2018 19:42:36 PointerEvent : 112 | 672/ 672 ( 0.0%)
09/12/2018 19:42:36 FramebufferUpdate : 32 | 320/ 320 ( 0.0%)
09/12/2018 19:42:36 SetEncodings : 1 | 56/ 56 ( 0.0%)
09/12/2018 19:42:36 SetPixelFormat : 1 | 20/ 20 ( 0.0%)
09/12/2018 19:42:36 TOTALS : 146 | 1068/ 1068 ( 0.0%)
09/12/2018 19:42:36 destroyed xdamage object: 0x40002e
09/12/2018 19:42:36 Got connection from client 127.0.0.1
09/12/2018 19:42:36 other clients:
09/12/2018 19:42:36 Got 'ws' WebSockets handshake
09/12/2018 19:42:36 Got protocol: binary
09/12/2018 19:42:36 - webSocketsHandshake: using binary/raw encoding
09/12/2018 19:42:36 - WebSockets client version hybi-13
09/12/2018 19:42:36 Disabled X server key autorepeat.
09/12/2018 19:42:36 to force back on run: 'xset r on' (3 times)
09/12/2018 19:42:36 incr accepted_client=3 for 127.0.0.1:49474 sock=10
09/12/2018 19:42:36 Client Protocol Version 3.8
09/12/2018 19:42:36 Protocol version sent 3.8, using 3.8
09/12/2018 19:42:36 rfbProcessClientSecurityType: executing handler for type 1
09/12/2018 19:42:36 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8

Supplying Certificates

Admittedly, I'm a bit new to Docker; but, I'm having some issues supplying my own web HTTPs certificates.

I have some generated through LetsEncrypt on the host machine (same domain). They aren't exactly the same file name; but, I mounted them in the same directory and changed the default-site.conf file to point to them instead.

From there, I committed those changes to the image and started a new container. However, I noticed that the new container and image seems to re-generate the self-signed certs and that my changes to the nginx conf don't stick.

Am I doing something wrong? Any assistance would be much appreciated.

Server disconnected (error : 1006) with nginx proxy manager

Hi.
So my issue is actually pretty difficult to explain.
I installed docker-firefox some days ago and everything was working perfectly. I was using nginx as reverse proxy in order to access firefox UI.
Then I decided today to use Nginx Proxy Manager instead of nginx itself. Everything is working flawlessly... except with your firefox and handbrake images.

So there's the problem.
This issue does not occur when firefox home page is the only page to be opened.
If i open any website with firefox (Google, or any website), then I stay inactive and I do not do anything on firefox for 3-4 mins, the web UI crashes and says "Server disconnected (code : 1006)".
Also, if I try the same thing locally (connecting to the UI with local IP, not thru nginx), the problem doesn't come out.
That's pretty weird because it does not occur on firefox home page; and I also get this problem with handbrake.
There's my nginx configuration for firefox, and a pic of the error.

Capture d’écran 2019-11-09 à 22 30 31
Capture d’écran 2019-11-09 à 22 44 26
Capture d’écran 2019-11-09 à 22 30 44
Capture d’écran 2019-11-09 à 22 28 20

I don't know if I have to post this issue in your github or if I had to post it in the Nginx Proxy Manager's but since I only get this problem with your images I decided to post it here.

shm-size via docker compose ?

Hi there,

I don't know how to set the shm-size parameter via docker-compose ?

Tried with :

services:
firefox:
image: jlesage/firefox:latest
build: .
args:
shm-size: 2g

but unfortunately this won't work.

Dockerfile for baseimage ubuntu

Is it possible to get a Dockerfile for baseimage ubuntu 16.04 or 18.04? I'm having trouble configuring vpnc in the alpine image...

Widevine Plugin Support

i am having issues using sites that use Widevine plugin. is there anyway to allow for this? i am open to mapping other volumes to the container to support this but i dont know which i should add or if the fix is elsewhere.

Docker container recently stopped working

I recently switched from Ubuntu to Centos 7 on my linux server, and initially had this project working after the update. But then - out of nowhere, it just fails to work correctly. When I try to run it, it just exits after 5-10 seconds. I'm pretty new to docker, and an amateur with Linux, but am not sure exactly what is going on here. There are two unsupported file format errors, but am not really sure what they are pertaining to. Can anyone point me in the right direction to get this working again? Attached is the log file.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] check-snd.sh: executing...
[cont-init.d] check-snd.sh: sound not supported: device /dev/snd not exposed to the container.
[cont-init.d] check-snd.sh: exited 0.
[cont-init.d] firefox-set-prefs-from-env.sh: executing...
[cont-init.d] firefox-set-prefs-from-env.sh: exited 0.
[cont-init.d] firefox.sh: executing...
[cont-init.d] firefox.sh: generating machine-id...
Error: unsupported file format
[cont-init.d] firefox.sh: exited 1.
[services.d] stopping services
[services.d] stopping s6-fdholderd...
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] check-snd.sh: executing...
[cont-init.d] check-snd.sh: sound not supported: device /dev/snd not exposed to the container.
[cont-init.d] check-snd.sh: exited 0.
[cont-init.d] firefox-set-prefs-from-env.sh: executing...
[cont-init.d] firefox-set-prefs-from-env.sh: exited 0.
[cont-init.d] firefox.sh: executing...
Error: unsupported file format
[cont-init.d] firefox.sh: exited 1.
[services.d] stopping services
[services.d] stopping s6-fdholderd...
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Proxy user and pass automation

Hi Guys, how are you?
Just to let you know, your docker firefox is amazin!

Sadly i camed with one issue. I want to automate the configuration of a proxy but the proxy requieres user and password authentication.
Do you know how can i automate this? I tried to pass it to the proxy variable like user:pass@proxy but it didnt work.

Any solutions?
Best regards!

compil RPI

Hello,

thanks for your job

I don't speak english sorry,
I would like compile your project to RPI and I have issues in more fonction:

xevents.c: In function 'check_autorepeat':
xevents.c:1138:7: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations]
       str = XKeysymToString(XKeycodeToKeysym(dpy, i, 0));
       ^~~
In file included from x11vnc.h:77:0,
                 from xevents.c:35:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~

have you solution?
I have search and find this

https://stackoverflow.com/questions/9838385/replace-of-xkeycodetokeysym

Can you help-me for debbug please

Transfer files

Hi,
Any suggestion on how to transfer files to my machine? Downloaded files are (as expected) downloaded to container machine, any easy way to get to them without going to cmd line?

Synology : Server disconnected (code 1006)

Hello,

I'm getting the error : server disconnected (code 1006).
From googling I suppose this is not purely related to docker-firefox but I can't find what is wrong with my configuration.

The docker is installed on my Synology and reached through the embedded nginx of the NAS.
I try to reach it from a subdomain configured to reach the port 5800 of the docker image.

The session starts (I can see the navbar) but after a while I get this error.

Here's some log from the docker image :
10/12/2018 10:12:13 Got connection from client 127.0.0.1
10/12/2018 10:12:13 other clients:
10/12/2018 10:12:13 Got 'ws' WebSockets handshake
10/12/2018 10:12:13 Got protocol: binary
10/12/2018 10:12:13 - webSocketsHandshake: using binary/raw encoding
10/12/2018 10:12:13 - WebSockets client version hybi-13
10/12/2018 10:12:13 Disabled X server key autorepeat.
10/12/2018 10:12:13 to force back on run: 'xset r on' (3 times)
10/12/2018 10:12:13 incr accepted_client=7 for 127.0.0.1:60684 sock=10
10/12/2018 10:12:13 created xdamage object: 0x600031
10/12/2018 10:13:13 rfbProcessClientProtocolVersion: client gone
10/12/2018 10:13:13 client_count: 0
10/12/2018 10:13:13 Restored X server key autorepeat to: 1
10/12/2018 10:13:13 Client 127.0.0.1 gone
10/12/2018 10:13:13 Statistics events Transmit/ RawEquiv ( saved)
10/12/2018 10:13:13 TOTALS : 0 | 0/ 0 ( 0.0%)
10/12/2018 10:13:13 Statistics events Received/ RawEquiv ( saved)
10/12/2018 10:13:13 TOTALS : 0 | 0/ 0 ( 0.0%)
10/12/2018 10:13:16 destroyed xdamage object: 0x600031

Regards

Youtube, Vimeo...

docker-firefox cant play youtube, vimeo and other HTML5 video websites, maybe a incompatible compilation ?! Forgot something...

Getting "s6-applyuidgid: fatal: unable to exec mkdir: Permission denied" when starting the container

Hi,

Thank you for your great work. I am very pleased with your Firefox container on several servers but I am facing a really strange behavior on one of them. I am running docker on a 18.04 Ubuntu server. If I try to start the container by just running your suggested command I get the following error:
s6-applyuidgid: fatal: unable to exec mkdir: Permission denied
[cont-init.d] 10-nginx.sh: exited 111.
[services.d] stopping services
[services.d] stopping s6-fdholderd...

It is important to note that I am running the exact same container on another Ubuntu 18.04 installation without any problem. On the server having the problem I run several other container without any issue. I tried to run another container you made "docker-jdownloader-2" I am getting the same error.

PGID and PUID are set accordingly to my user who is owner of the volume. Security has been set to 777 to open as much as possible the security.

Is there anything I am doing wrong?

Thank you for your support.

Denis

Window/Tab Navigation

Sorry if I missed it. What is the equivalent of Ctrl+w ?

Ctrl+w closes the container instance instead of closing the tab inside the container instance.

Thanks

Add Button To ReOpen

How do you reopen the browser if you "Quit" it. If youre remote, you dont always have accesss to "restart". Isnt there a way to add a button to relaunch it?

Firefox version?

how about making the firefox version an environment variable, so its easier to launch an updated version?

ARM support

Hello! Thanks for your container, it's neat!

I would like to run it on openmediavault. It worked properly on an x86 VM, but if I try it on my ARM (armhf) single-board computer, the container crashes with the following error:

standard_init_linux.go:190: exec user process caused "exec format error"

which, if I understand well, is due to an architecture mismatch. Are you positive your container indeed can't run on ARM? If so, would it take you a lot of work to change dependencies?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.