{"id":21250934,"url":"https://github.com/natlee/dev-dock","last_synced_at":"2025-07-06T00:09:13.192Z","repository":{"id":203927112,"uuid":"636113795","full_name":"NatLee/dev-dock","owner":"NatLee","description":"Creating a common GUI image by using docker for developing.","archived":false,"fork":false,"pushed_at":"2024-01-16T15:29:57.000Z","size":74998,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-15T05:24:57.883Z","etag":null,"topics":["browser","conda-environment","development-environment","docker","docker-image","gui-application","gui-interface","novnc","ssh-server","vnc","vscode","xfce-desktop"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NatLee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-04T06:47:38.000Z","updated_at":"2024-06-20T13:35:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e0b6d8f-0c8d-4f14-9e97-2ecbe5910a18","html_url":"https://github.com/NatLee/dev-dock","commit_stats":null,"previous_names":["natlee/gui-container-using-xfce-with-vnc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NatLee/dev-dock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2Fdev-dock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2Fdev-dock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2Fdev-dock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2Fdev-dock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLee","download_url":"https://codeload.github.com/NatLee/dev-dock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2Fdev-dock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263828726,"owners_count":23516791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","conda-environment","development-environment","docker","docker-image","gui-application","gui-interface","novnc","ssh-server","vnc","vscode","xfce-desktop"],"created_at":"2024-11-21T03:39:48.054Z","updated_at":"2025-07-06T00:09:08.179Z","avatar_url":"https://github.com/NatLee.png","language":"Shell","readme":"# Dev Dock\n\nA GUI Container using Xfce with noVNC.\n\n\u003e Only support x86/64.\n\n![desktop](./doc/desktop.png)\n\n\u003e Also can check the GUI [Management](https://github.com/NatLee/development-container-manager).\n\nThis repo is creating a common GUI image by using docker for developing.\n\nThe image included the following components:\n\n* Xfce Desktop\n* VNC Server (default VNC port: 5901)\n* VNC Client with HTML5 support (default http port: 6901)\n* OpenSSH (default SSH port: 22)\n* Git\n* Mini Conda\n* VScode\n* Firefox\n* Anydesk\n\n## Run docker without sudo\n\n```bash\nsudo groupadd docker \u0026\u0026 gpasswd -a $USER docker\n```\n\n**＊ You can change $USER to match your preferred user name if you do not want to use your current user**\n\n## Usage\n\n### Quick start\n\n- Build an image and run a testing container.\n\n```bash\ndocker-compose build \u0026\u0026 docker-compose up\n```\n\n### NVidia GPU support\n\nIf you need use this with NVIDIA GPUs, you need to follow this in the main system.\n\n- [Installing the NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html)\n\nWhen NVidia Docker is installed, use this command to run a testing container with GPU support.\n\n```bash\ndocker-compose -f docker-compose.nvidia.yml build \u0026\u0026 docker-compose -f docker-compose.nvidia.yml up\n```\n\n## Connection\n\nIf you have not change the default port yet, you can use the services with the following ports.\n\n* VNC port: 5901, connect with host `\u003cYOUR_HOST_IP\u003e` and `\u003cPORT\u003e`\n* noVNC port: 6901, connect via `http://\u003cYOUR_HOST_IP\u003e:6901/?password=\u003cYOUR_VNC_PASSWORD\u003e`\n* SSH port: 22, connect with command line `ssh root@\u003cYOUR_HOST_IP\u003e:\u003cPORT\u003e`\n\n**＊ You can login SSH with `default user` or `root`.**\n\n## Parameters\n\nYou can use these parameters to set some settings.\n\n* Map ports\n    - 5901 (vnc protocol)\n    - 6901 (vnc web access)\n    - 22 (ssh protocol)\n\n`-p 12345:5901 -p 13579:6901 -p 24680:22`\n\n* Set the same timezone\n\n`-v /etc/localtime:/etc/localtime:ro`\n\n* Mount a volume\n\n`-v \u003cYOUR_LOCAL_PATH\u003e:\u003c\u003eYOUR_CONTAINER_PATH\u003e`\n\n* Mount a network disk as a volume\n\n`sudo mount -t cifs -o username=\u003cYOUR_USER_NAME\u003e,password=\u003cYOUR_PASSWORD\u003e,vers=3.0 //\u003cYOUR_NETWORK_LOCATION\u003e \u003cLOCAL_LOCATION\u003e`\n\n`-v \u003cLOCAL_LOCATION\u003e:\u003c\u003eYOUR_CONTAINER_PATH\u003e`\n\n* Override the VNC resolution\n\n`-e VNC_RESOLUTION=1920x1080`\n\n* Change the VNC password\n\n`-e VNC_PW=\u003cYOUR_VNC_PWD\u003e`\n\n* Change root password\n\n`-e ROOT_PASSWORD='root'`\n\n* Add user\n\n`-e DEFAULT_USER='user' -e DEFAULT_USER_PASSWORD='user'`\n\n\n### Execution with the only docker command\n\n**You need to restart the container to make Chinese input method work after first login into VNC.**\n\n* Run a testing container\n\n```bash\ndocker run -d -p 12345:5901 -p 13579:6901 -p 24680:22 \\\n            -v /etc/localtime:/etc/localtime:ro \\\n            -v /home/infor/Desktop/test/:/root/Desktop/ \\\n            -e VNC_PW=infor1234 \\\n            -e VNC_RESOLUTION=1600x900 \\\n            -e DEFAULT_USER='test' -e DEFAULT_USER_PASSWORD='test' \\\n            -e ROOT_PASSWORD='root' \\\n            --name test test-vnc-gui\n```\n\n# License\n\n[MIT](./LICENSE)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fdev-dock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlee%2Fdev-dock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fdev-dock/lists"}