Public Repository

Last pushed: 2 years ago
Short Description
Debian Iceweasel containerized for local X11
Full Description

This image allows you to run the Debian Iceweasel in container with a persistent profile in a data container while having the GUI application show up on your host's X11 display and sound playing in pulse audio on the host.

The image uses the /tmp/.X11-unix unix domain socket passed to the container using a volume bind to connect to the local X11 server on the host. Xsecurity applies and the startup script automatically uses xhost to enable access from Iceweasel running under uid 10000 inside the container.

The image supports pulse audio for sound output on the host and automatically reconfigures pulse audio on the fly for network access from the container using cookie authentication with a cookie called .config/pulse/cookie also generated on the fly if not existing. It checks the interface docker0 for it's IP and network and uses that to configure tcp pulse audio server access for the container.

The image uses a data container for Iceweasel profile persistence. The startup script allows to backup and restore the Iceweasel profile from the data container to the host. It also assures that the newest image gets fetched automaticallty should a newer version be available.

To install the Iceweasel startup script use the following command:

export TARGET_DIR=~/bin

docker run -t -i --rm --env TARGET_UID=$(id -u) --env TARGET_GID=$(id -g) -u root -w /home/iceweasel -v ${TARGET_DIR}:/install aguindehi/debian-iceweasel:latest ./install

It will install the script iceweasel-container into the target directory you specify.

To run Iceweasel after installation:


To backup your Iceweasel profile data:

~/bin/iceweasel-container backup

The backup archive is named /var/tmp/iceweasel-backup/iceweasel-profile-<date>.tar.gz

To restore your Iceweasel profile data:

~/bin/iceweasel-container restore <filename>

The backup archive will be loaded from /var/tmp/iceweasel-backup/<filename>

To get a shell inside of the container with mounted data directory:

~/bin/iceweasel-container bash

To reinstall or update the Iceweasel startup script and images:

~/bin/iceweasel-container update

To open an URL from the host's command line in Iceweasel:

~/bin/iceweasel-container open-tab

~/bin/iceweasel-container open-win

~/bin/iceweasel-container open-privwin

To see the help of the startup script:

~/bin/iceweasel-container help

Docker Pull Command