Type 'help' to see available commands. You can use some terminal commands to navigate...
guest@techdiy:~$
Firefox Browser - Docker Image Based on Debian
This Docker image provides a lightweight and secure environment to run the "Firefox Browser" Based on "Debian Linux", it is designed for users who prioritise speed and efficiency while maintaining privacy and security while browsing the web.
Requirements:
1. Podman (recommended) - In the .sh file below "podman" is used instead of "docker".
Why Podman?: It offers a DAEMONLESS architecture and supports running containers WITHOUT root privileges, which can improve both security and system stability. Since its CLI is largely compatible with Docker, most commands can be used without modification.
2. Docker (compatible) - Ensure to replace "podman" with "docker" in the .sh file if you want to use it instead.
3. X11 Server -- You need to have an "X11" server running for the graphical interface.
⚠️ It does not work on Wayland !
(to check what you using - run: `echo $XDG_SESSION_TYPE` on Linux)
⚠️ Tested on KDE Plasma (Linux). If you encounter issues, you may need to install additional package(s) for your desktop environment. Just follow the error message for guidance. Windows, macOS, and other operating systems have not been tested !
Usage:
👣 Create a folder firefox-debian
👣 Create two files in that folder: Dockerfile & run-firefox.sh with the code below...
👣 Make run-firefox.sh executable:
chmod +x run-firefox.sh
👣 No need to build the image - just run the script:
./run-firefox.sh
Key Features:
You can interactively enter the running container:
👣 Open a new terminal window or tab when container is running, keep the browser open and run:
podman exec -it <container_name_or_id> bash
If you close the browser running from the container - the container process exites!
• You can install additional packages as sudo is installed (no password needed)
You can do so adding the packages in the package list in the Dockerfile before run it!
💡 Security Considerations:
• This container is designed to run in a sandboxed environment with minimal exposure to the host system.
• It's recommended to run this image using non-privileged user permissions and limit access to sensitive directories.
• Remember: The docker image behind the browser is running with sudo installed and no-password!
⚠️ Disclaimer:
This Docker image is provided as-is, without any warranties or guarantees of any kind. Use of this image is entirely at your own risk.