Attempting to run gnome-terminal inside a Docker container gives the following error
# gnome-terminal -e "python3 test.py"
# Option “-e” is deprecated and might be removed in a later version of gnome-terminal.
# Use “-- ” to terminate the options and put the command line to execute after it.
# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Failed to execute child process “dbus-launch” (No such file or directory)
Install dbus-x11 to solve
sudo apt-get install -y dbus-x11
If you don't have gnome-terminal, you can install it below
sudo apt-get install -y gnome-terminal
simple interprocess messaging system (X11 deps)
Recommended Posts