I want to run gedit in a docker container, but I realized that even though I can open the GUI, I can't change the color scheme.
This is the command I run:
xhost local:root && docker run -i --rm -v /tmp/.X11-unix:/tmp/.X11-unix --env DISPLAY=$DISPLAY ubuntu <<<'apt-get -yqq update && apt-get -yqq install gedit >/dev/null 2>&1 && gedit'
And this is the output I get in the console:
non-network local connections being added to access control list
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
e96e057aae67: Pull complete
Digest: sha256:4b1d0c4a2d2aaf63b37111f34eb9fa89fa1bf53dd6e4ca954d47caebca4005c2
Status: Downloaded newer image for ubuntu:latest
(gedit:4183): dbind-WARNING **: 19:40:08.701: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-2yjwCwntfH: Connection refused
Gtk-Message: 19:40:08.724: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:40:08.726: Failed to load module "canberra-gtk-module"
(gedit:4183): dconf-WARNING **: 19:40:08.733: failed to commit changes to dconf: Failed to close file descriptor for child process (Operation not permitted)
(gedit:4183): dconf-WARNING **: 19:40:08.738: failed to commit changes to dconf: Failed to close file descriptor for child process (Operation not permitted)
(gedit:4183): dconf-WARNING **: 19:40:17.726: failed to commit changes to dconf: Failed to close file descriptor for child process (Operation not permitted)
(gedit:4183): dconf-WARNING **: 19:40:17.727: failed to commit changes to dconf: Failed to close file descriptor for child process (Operation not permitted)
(gedit:4183): dconf-WARNING **: 19:40:24.729: failed to commit changes to dconf: Failed to close file descriptor for child process (Operation not permitted)
This screenshot demonstrates that despite having the Cobalt option selected, the color scheme doesn't change:

What can I do to fix this problem?