Giter Club home page Giter Club logo

container-xrdp's Introduction

container-xrdp

Docker container for xrdp (both Xorg and Xvnc) currently based on Amazon Linux 2, CentOS, Fedora, and Ubuntu. Full desktop environments Mate and Xfce are supported. No privilege or sys_cap is required on the host system. These containers are lightweight and ideal for rapid development and testing purposes. Notice that the state of the container is not persisted between runs. In order to persist the state of the container, see this guide.

How to use

First pull the container with the appropriate tag. the following tag combinations are available:

  • danchitnis/xrdp:fedora-xfce
  • danchitnis/xrdp:ubuntu-xfce
  • danchitnis/xrdp:amazon-mate
  • danchitnis/xrdp:amazon-xfce
  • danchitnis/xrdp:centos7-mate (no longer supported)
  • danchitnis/xrdp:centos7-xfce (no longer supported)
  • danchitnis/xrdp:centos8-xfce (no longer supported)

Example:

docker pull danchitnis/xrdp:fedora-xfce

You have to give username, password, and sudo ability as input arguments to the docker run command. Hence, each user has three parameters. The process will exit if the input arguments are incorrect. Please run as interactive mode at first instance.

Example when username is foo, password is bar and sudo ability is no:

docker run -it -p 33890:3389 danchitnis/xrdp:fedora-xfce foo bar no

Similarly for detached mode

docker run -d -p 33890:3389 danchitnis/xrdp:fedora-xfce foo bar no

Once running, open Remote Desktop Connection. Enter "localhost:33890" as the address.

In this example username is foo and the password is bar.

Adding more users

You can add more users as a list of arguments and 3 inputs per user as described above

Example:

User Pass Sudo
foo bar yes
baz cox no
docker run -it -p 33890:3389 danchitnis/xrdp:fedora-xfce foo bar yes baz qux no

Sudo users

Adding a sudo user will give that user sudo ability so that you can run privileged command inside the container

For example start docker container with

docker run -d -p 33890:3389 danchitnis/xrdp:fedora-xfce foo bar yes

Once inside the container user foo can do this

sudo yum update

Notice that to give sudo ability, the third input parameter for each user should be explicitly yes, otherwise any other input will be ignored.

Build

Check the following guide for building your own containers.

Contributions

Inspired by frxyt/docker-xrdp

Ubuntu commands by danielguerra69/ubuntu-xrdp

xrdp service restrat by timwa0669

container-xrdp's People

Contributors

danchitnis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.