super-couscous
所属分类:远程控制/远程桌面
开发工具:Others
文件大小:1KB
下载次数:0
上传日期:2017-02-27 16:17:43
上 传 者:
sh-1993
说明: Docker RDP(驳接器RDP)
(Docker RDP)
文件列表:
Dockerfile (562, 2017-02-28)
supervisor.conf (159, 2017-02-28)
### running the image
`docker run -dp 3389:3389 --restart=always swined/rdp`
### adding users manually
run the image, find it's id with `docker ps`, then run `docker exec -it
adduser --ingroup sudo` and follow the prompts. the user will have admin access, check out `man adduser` for more details on configuring user's permissions.
### building custom images with predefined users
run `echo -n | openssl passwd -crypt -stdin` and copy the hashed password, that is returned. create a folder, and put there a 'Dockerfile' with the following content:
```
FROM swined/rdp
RUN useradd -mp -s /bin/bash -G sudo
```
run `docker build -t .` and then run the image as usual, replacing 'swined/rdp' with your custom image name
### building custom images with preinstalled software
create a Dockerfile as described earlier, and put a line with `RUN apt-get update && apt-get install -y --force-yes && apt-get clean` instead of 'RUN useradd ...', or combine both 'useradd' and 'apt-get' if you need both custom users and custom software
近期下载者:
相关文件:
收藏者: