Docker for midscene remote pc device server,with ubuntu20 gnome desktop.
2.4K
Ubuntu GNOME desktop-based Docker container with pre-installed Midscene PC service, supporting VNC remote access to the graphical interface
This project is based on the original project and pre-installs the following components:

| Feature | Description |
|---|---|
| 🖥️ Ubuntu GNOME Desktop Environment | Complete graphical interface experience |
| 🚀 Midscene PC Auto-start | Automatically runs using supervisor process manager |
| 🌐 VNC Remote Access | Access via browser or VNC client |
| 🔍 Chrome Browser | Pre-installed Google Chrome browser |
| ⚡ Node.js Environment | Supports running JavaScript applications |
git clone https://github.com/mofangbao/midscene-pc-docker.git
cd midscene-pc-docker
docker build -t ppagent/midscene-ubuntu-desktop:latest .
docker pull ppagent/midscene-ubuntu-desktop:latest
# Use the provided startup script
./start.sh
# Or run manually
docker run -d \
--name midscene-desktop \
-p 10081:10081 \
-p 3333:3333 \
-v $(pwd)/data:/mnt/data \
midscene-ubuntu-desktop:latest
⚠️ Note: Docker Compose is currently not supported
/etc/supervisor/conf.d/midscene-pc.confnpx midscene-pcnpx midscene-pc/home/headless directory# Enter container
docker exec -it midscene-desktop bash
# Check supervisor status
supervisorctl status
# Check processes
ps aux | grep midscene
# View logs
tail -f /var/log/midscene-pc.log
tail -f /var/log/midscene-pc-error.log
# Manage via supervisor
supervisorctl start midscene-pc
supervisorctl stop midscene-pc
supervisorctl restart midscene-pc
# Run command manually
cd /home/headless && npx midscene-pc
Important
🕐 **Startup Notice**: After startup, it takes about 10 seconds to initialize the desktop. If the VNC connection shows a black screen, please wait a moment.
| Port | Service | Access URL |
|---|---|---|
| 10081 | VNC Web Interface | http://localhost:10081 |
| 3333 | Midscene PC Service Port | - |
Copy the required deb files to the
softwaredirectory, then rebuild the image to achieve pre-installation.📋 Tested Software: WeChat, DingTalk, VSCode, WPS and other common software all run normally.
If no password-related environment variables are specified in start.sh or your own docker run script, the default password is headless.
Modifiable Environment Variables:
VNC_PASSVNC_PASS_ROSSH_PASSDefault start.sh Startup Configuration:
SSH_PASS=midscene-pc
VNC_PASS=midscene-pc
VNC_PASS_RO=midscene_pc
Activities button in the top left corner
/var/log/midscene-pc.log and /var/log/midscene-pc-error.log/home/headless directory as headless usersupervisorctl commands for convenient service status management| Platform | Issue Description | Impact Scope |
|---|---|---|
| 🍎 macOS | Manual drawing functionality not supported when creating midscene-pc devices | Fullscreen and fixed area work normally |
| 🍎 macOS | VNC connection cannot automatically adapt to Retina display | Does not affect actual automation operations |
| 🐳 Docker | Currently only supports docker run startup | Docker Compose not supported |
🎉 Thank you for using Midscene PC Docker Container!
If you have any questions or suggestions, feel free to submit an Issue or Pull Request
Content type
Image
Digest
sha256:1020a1ce4…
Size
1.1 GB
Last updated
11 months ago
docker pull ppagent/midscene-ubuntu-desktop