This is a conteinerized version of Ubuntu 20.04, with the XFCE Desktop Environment installed, all configured to be accessible via RDP.
The image is slightly big 1.67GB , I tried to keep it as little as possible by installing only the required packages to make it work as intended
Pull the image
docker pull doctorkirk/ubuntu-xrdp
Run the Container
docker run -dit --name ubuntu-xrdp \
-p 3389:3389 \
-p 2222:22 \
--shm-size 1g \
--privileged \
doctorkirk/ubuntu-xrdp
Note: Don't get below the 1GB of shm_size otherwhise some apps might crash
There are no default users defined beside root, in order to create your own you only need to get inside the container
docker exec -it ubuntu-xrdp bash
and add a user, by issuing the command
adduser username
You'll need to fill in your password twice, and then you can leave blank all the others fields (just hit ENTER a few time)
Here's an example
root@8bf95a4044af:/# adduser ale
Adding user `ale' ...
Adding new group `ale' (1000) ...
Adding new user `ale' (1000) with group `ale' ...
Creating home directory `/home/ale' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for ale
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
root@8bf95a4044af:/#
After adding your user, open your preferred RDP client and connect to the container.
Please note that you have to use the host IP, not the container one
Tags: ubuntu , xrdp , rdp, uxrdp, linuxContent type
Image
Digest
Size
583.6 MB
Last updated
about 5 years ago
docker pull doctorkirk/ubuntu-xrdp