Skip to content

Docker Multi User Remote Desktop Server with docker inside.

Notifications You must be signed in to change notification settings

danielguerra69/ubuntu-xrdp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Ubuntu 20.04 Focal Fossa Remote Desktop Server Docker in Docker

Multi User Remote Desktop Server with docker inside. Intended for group usage in a shared docker space. Based on https://hub.docker.com/r/danielguerra/ubuntu-xrdp/ Audio and Copy/Paste is working.

Usage

Start a shared docker with overlay2 storage

docker run --privileged --name shared-docker -d docker:stable-dind --storage-driver=overlay2

Start the remote desktop server

docker run -d --link shared-docker:docker --shm-size 1g --name uxrdp-dind --hostname docker-terminal -p 3389:3389 -p 2222:22 danielguerra/ubuntu-xrdp-docker

Connect to the remote desktop server with your RDP-client or with ssh so you can connect to RDP 127.0.0.1:3389

ssh -L 3389:127.0.0.1:3389 ubuntu@<docker-ip>

Sample user

There is a sample user with sudo rights

Username : ubuntu Password : ubuntu

You can change your password in the rdp session in a terminal

passwd

Docker Example

Docker and docker-compose have been added so all users can use the shared-docker. When you start a docker container with port options you can connect the hostname docker

First connect with you RDP-client.

Then in a in a terminal in the RDP

docker run -d danielguerra/sshd --name sshd -p 7777:22

After this ssh to your ssh server in a terminal in the RDP

ssh -p 7777 alpine@docker

*note the password is alpine

Or from your workstation

ssh -t -p 2222 ubuntu@<docker-ip> ssh -p 7777 alpine@docker

Add Users

Add a new user who is allowed to use docker

docker exec -ti uxrdp-dind adduser <newuser>
usermod -G docker <newuser>

About

Docker Multi User Remote Desktop Server with docker inside.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published