Ubuntu 16.04 LTS ( xenial) export VER=xenial docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER X11docker -desktop ubuntu-mate:trusty -sudouser -dbus -home -share ~/Public -clipboard -pulseaudio -xtest Ubuntu 14.04 LTS ( trusty) export VER=trusty docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER X11docker -desktop ubuntu-mate:precise -sudouser -dbus -home -share ~/Public -clipboard -pulseaudio -xtest -runasroot 'chmod 0440 /etc/sudoers' Ubuntu 12.04 LTS ( precise) export VER=precise docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER Or explicitly specify needed version by replacing $VER variable with actual version as shown below: x11docker -desktop ubuntu-mate:hirsute -sudouser -dbus -home -share ~/Public -clipboard -pulseaudio -xtest -init=systemdįor some purposes one may need to run Ubuntu MATE versions like 12.04 LTS, 14.04 LTS and 16.04 LTS inside Docker container without systemd. To run the container from the same terminal use: x11docker -desktop ubuntu-mate:$VER -sudouser -dbus -home -share ~/Public -clipboard -pulseaudio -xtest -init=systemd Note: if you have a Squid Deb Proxy in your local network, then you can use it by adding additional argument -build-arg http_proxy= (change proxy server IP and port to yours). Upcoming Ubuntu 22.04 LTS ( jammy) export VER=jammy docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER Ubuntu 21.10 ( impish) export VER=impish docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER Ubuntu 21.04 ( hirsute) export VER=hirsute docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER Ubuntu 20.10 ( groovy) export VER=groovy docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER Ubuntu 20.04 LTS ( focal, default) export VER=focal docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER Ubuntu 18.04 LTS ( bionic) export VER=bionic docker build -build-arg "VER=$VER" ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:$VER One can run almost any preinstalled application in the opened graphical MATE session or install any other by using APT.Īdvanced usage allows one to build and run any supported Ubuntu MATE version inside Docker container with X11. Other options are available in x11docker -help output. init=systemd – use systemd as init system inside container. xtest – use XTest X11 extension (needed for Onboard) share ~/Public – share folder between host system and container home – creates a host directory in ~/.local/share/x11docker/IMAGENAME that is shared with the container and mounted as its HOME directory dbus – DBUS session bus for desktop and other applications sudouser – allows running commands with sudo and password is x11docker More functional, using extra options x11docker -desktop ubuntu-mate:focal -sudouser -dbus -home -share ~/Public -clipboard -pulseaudio -xtest -init=systemd Minimal, using default settings x11docker -desktop ubuntu-mate:focal Sudo mv x11docker /usr/local/bin/x11dockerīuild default Ubuntu MATE 20.04 LTS image locally docker build ~/Docker/dockerfile-x11docker-ubuntu-mate -t ubuntu-mate:focal Prepare folder for Docker repository mkdir ~/Docker Install dependencies sudo apt-get install git xserver-xephyrĪdd current user to the docker group sudo usermod -a -G docker $USER Sudo apt-get install docker-ce docker-ce-cli containerd.io $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null Sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-releaseĬurl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgĮcho "deb \ # sudo apt-get remove docker docker-engine docker.io containerd runc Install Docker # to remove previously installed Docker, uncomment next line To run Ubuntu MATE with x11docker one should follow the following steps: And what is interesting - such image has 10K downloads and is most popular variant.īelow is the method of using x11docker to run Ubuntu MATE. It already has pre-configured container with MATE desktop, which is based on Debian Buster. To get GUI one can utilize the famous and well-designed x11docker project. An alternative for virtual machine is a Docker container.Ĭontainers are usually running without GUI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |