CentOS 7 with RDP and docker
Base
Reference: https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html
Download and install docker
- Download CentOS.
- Install CentOS in HyperV.
- Select GNOME as desktop
- Update repositories
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm - use yum to install
yum -y install xrdp tigervnc-server
- Enable and start the service
systemctl enable xrdp systemctl start xrdp
- Confirm if the service is listening to TCP 3389
netstat -antup | grep xrdp
- Add firewall exception
firewall-cmd --permanent --add-port=3389/tcp firewall-cmd --reload
- SELinux change security context
chcon --type=bin_t /usr/sbin/xrdp chcon --type=bin_t /usr/sbin/xrdp-sesman
- Testing
You can connect to CentOS using Windows Remote Desktop Client.
Reference: https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html
Download and install docker
- Install yum utils
sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2
- Add repositories
sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo
- Install Docker CE
sudo yum install docker-ce
- Enable and start Docker
sudo systemctl enable docker
sudo systemctl start docker
Comments