Ubuntu XFCE4 desktop in Docker with XRDP and RustDesk access, plus persistent storage.
1.1K
A Docker-based remote desktop environment with Ubuntu, XFCE4, XRDP, and RustDesk support, featuring persistent storage capabilities.
Start the RDP VM with persistent storage:
make start
Connect via RDP:
localhost or your server IP3389ubuntuubuntuStop the RDP VM:
make stop
| Command | Description |
|---|---|
make build | Build the Docker image |
make start | Build and start RDP VM with persistent storage |
make stop | Stop the RDP VM |
make restart | Restart the RDP VM |
make logs | View container logs |
make status | Show container status |
make clean | Clean up Docker images |
make clean-all | Clean up everything including Docker images |
make clean-data | Remove all persistent data directories |
make setup-dirs | Create necessary local directories |
make push | Push image to registry |
# Build the image
make build
# Run without persistence
docker run -d -p 3389:3389 oaklight/rdp_vm:latest
The Docker Compose setup uses local directories for persistent storage:
./data/home → /home/ubuntu): All user files, desktop settings, and personal data./data/etc → /etc): System-wide configuration files./data/opt → /opt): Installed applications and their data./data/var → /var): Logs, databases, and other variable content./shared → /home/ubuntu/shared): Host directory for file transferAll persistent data is stored in local directories under ./data/ making it easy to backup, inspect, and manage.
The ./shared directory on the host is mounted inside the container at /home/ubuntu/shared. Use this directory to:
Edit the docker-compose.yml file and modify the PASSWORD environment variable:
environment:
- PASSWORD=your_new_password
You can install additional software by:
aptOr modify the Dockerfile to include additional packages in the build process.
# Check logs
make logs
# Check status
make status
# Remove Docker images and containers
make clean-all
# Remove all persistent data (WARNING: This deletes all user data!)
make clean-data
If you encounter permission issues with the shared directory:
sudo chown -R 1020:1020 ./shared
ubuntu/ubuntu - change them in productionSYS_ADMIN capability for desktop functionalityContent type
Image
Digest
sha256:921333d08…
Size
420.7 MB
Last updated
about 1 year ago
docker pull oaklight/rdp_vm