CentOS 7 with RDP and docker

Base
  1. Download CentOS.
  2. Install CentOS in HyperV.
    1. Select GNOME as desktop
Enable Remote Desktop

  1. Update repositories
    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  2. use yum to install
    yum -y install xrdp tigervnc-server
    
  3. Enable and start the service
    systemctl enable xrdp
    systemctl start xrdp
    
  4. Confirm if the service is listening to TCP 3389
    netstat -antup | grep xrdp
    
  5. Add firewall exception
    firewall-cmd --permanent --add-port=3389/tcp
    firewall-cmd --reload
    
  6. SELinux change security context
    chcon --type=bin_t /usr/sbin/xrdp
    chcon --type=bin_t /usr/sbin/xrdp-sesman
    
  7. 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
  1. Install yum utils
    sudo yum install -y yum-utils \
      device-mapper-persistent-data \
      lvm2
  2.  Add repositories
    sudo yum-config-manager \
        --add-repo \
        https://download.docker.com/linux/centos/docker-ce.repo
  3.  Install Docker CE
    sudo yum install docker-ce
  4.  Enable and start Docker
    sudo systemctl enable docker
    sudo systemctl start docker
Reference: https://docs.docker.com/install/linux/docker-ce/centos/



Comments