Difference between revisions of "Windows Server 2019"

From EVEmu Wiki
Jump to navigation Jump to search
m (Wording changes and a few better sentences)
(Added Troubleshooting Section)
 
Line 30: Line 30:
  
 
Wait until its done and your Docker Desktop Window should have both the Database and the Server running. Enjoy playing.
 
Wait until its done and your Docker Desktop Window should have both the Database and the Server running. Enjoy playing.
 +
 +
=== Troubleshooting ===
 +
Docker is showing "image operating system "linux" cannot be used on this platform". This is a known issue with the latest Docker for Windows Releases as of 8th March 2021. Switch Container format via right click on your docker icon and "Switch to Windows Containers" and back to "Switch to Linux Containers".

Latest revision as of 22:13, 7 April 2021

Basic Information

Compiling and Running a Docker Image on Windows Server 2019, while having advantages for Multi-CPU Systems, requires a few extra steps. As Server 2019 is not equipped with WSL2 (Windows Subsystem for Linux, Version 2), there are a few extra things to install and set up.

Prerequisites

First of all, install Docker for Desktop ([1]) and Git (Git). Now open up Powershell as Administrator and enable WSL by entering

  • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

After downloading and installing WSL, your Server will prompt you to reboot. After a reboot you need to reconfigure git to read the line feeds from the shell scripts correctly. By Default, the start.sh of EVEMU is wrongly interpreted with DOS Line breaks. To change this, enter

  • git config --global core.autocrlf input

into a Powershell with elevated privileges. Right-click your docker notification icon and hit „Switch to Linux Containers“. This will take a few minutes.

Starting the Server

Continue in Powershell and make sure you’re in the correct folder where you want to deploy EVEMU. Here enter

Depending on your internet connection and computer performance, this might take a bit. Once its done, enter the cloned folder with

  • cd evemu_Crucible

Now you’re almost done! One last step to get it up and running is to follow up in Powershell with

  • docker-compose -p evemu up --build -d

Wait until its done and your Docker Desktop Window should have both the Database and the Server running. Enjoy playing.

Troubleshooting

Docker is showing "image operating system "linux" cannot be used on this platform". This is a known issue with the latest Docker for Windows Releases as of 8th March 2021. Switch Container format via right click on your docker icon and "Switch to Windows Containers" and back to "Switch to Linux Containers".