Distrobox: Difference between revisions

From Alpine Linux
(created headings)
(moved troubleshooting content by user Lilith to Podman page)
 
(2 intermediate revisions by one other user not shown)
Line 15: Line 15:


If you are running X11 desktop, it may also be necessary to allow X authorization for GUI programs to work: {{ic|$ xhost +si:localuser:$USER}}
If you are running X11 desktop, it may also be necessary to allow X authorization for GUI programs to work: {{ic|$ xhost +si:localuser:$USER}}
== Troubleshooting ==


== See also ==
== See also ==
Line 21: Line 24:
* [[Podman]]
* [[Podman]]
* [[Docker]]
* [[Docker]]


[[Category:Virtualization]]
[[Category:Virtualization]]

Latest revision as of 03:48, 23 September 2025

Distrobox allows running any Linux distribution inside your terminal. Distrobox uses Podman, Docker etc.. to create containers using the Linux distribution of your choice. This enables both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with.

Installation

Installing distrobox package automatically installs Podman as a dependency, on issuing the command:

# apk add distrobox

Running graphical programs

Configure Podman to run in rootless mode.

Create a container using an image of your choice. Here Debian is installed using the command:

$ distrobox create --name my-debian --image debian $ distrobox enter my-debian

When Wayland desktop like Sway runs without xwayland on the Alpine Linux host, electron apps like vscode, google-chrome etc needs to be started as follows:$ distrobox enter my-debian -- code --ozone-platform=wayland.

If you are running X11 desktop, it may also be necessary to allow X authorization for GUI programs to work: $ xhost +si:localuser:$USER

Troubleshooting

See also