一个支持 Xubuntu 和 RDP(远程桌面协议)的 Docker 镜像。
构建 Docker 镜像:
docker build -t xubuntu-rdp .
运行容器:
docker run --privileged --name xubuntu -id --shm-size 4g -p 2201:22/tcp -p 33891:3389/tcp docker.cnb.cool/ipcun2025/xubuntu-rdp:latest
通过 RDP 连接:
localhost:33891userpasswd通过 SSH 连接:
ssh user@localhost -p 2201
bash git init 添加远程仓库(如果尚未添加):
bash git remote add origin https://cnb.cool/ipcun2025/xubuntu-rdp.git 添加所有文件到暂存区:
bash git add . 提交更改(确保提交信息有意义):
bash git commit -m "Initial commit: Add Dockerfile and project files" 推送代码到远程仓库:
bash git push -u origin main 2. 更新 README 文件 提交 README 更新:
bash git add README.md git commit -m "Update README with usage instructions" git push origin main 3. 验证推送 检查远程仓库:
bash git remote -v 查看提交记录: bash git log --oneline 访问 CNB 仓库: 打开浏览器访问 https://cnb.cool/ipcun2025/xubuntu-rdp 确认代码和 README 已更新。
注意事项 确保 main 分支是默认分支。 如果遇到权限问题,检查是否有推送权限。 如果仓库是私有的,确保已配置正确的访问凭证。