To set up Docker Engine on a Windows 10 machine without using Docker Desktop (dual licensing), you can follow these steps to launch a Windows Server Core container:
-
Install Docker Engine:
Download the Docker Engine for Windows from the official Docker website. Choose the "Windows Server Core" option during installation.
-
Start Docker Engine:
Open Command Prompt (cmd) as Administrator and run the following command to start Docker Engine:
docker.exe start dockerThen, run the following command to start the Docker daemon (dockerd.exe):
dockerd.exe -
Verify Docker Engine installation:
Run the following command to check if Docker Engine is running:
docker psIf Docker Engine is running, you should see a list of containers. If not, check the logs for any errors:
docker logs docker -
Pull and run a Windows Server Core container:
Pull the Windows Server Core container from the Docker Hub:
docker pull mcr.microsoft.com/windows/servercore:ltsc2019Run the container with the following command (replace "mycontainer" with your desired container name):
docker run -it --name mycontainer mcr.microsoft.com/windows/servercore:ltsc2019 cmd
Now you have a Windows Server Core container running with Docker Engine on your Windows 10 machine without using Docker Desktop.
References:
- Docker Engine for Windows: https://docs.docker.com/docker-for-windows/
- Windows Server Core: https://docs.microsoft.com/en-us/windows-server/get-started/getting-started-with-server-core
- Docker Hub: https://hub.docker.com/
- Docker documentation: https://docs.docker.com/
Note:
- This guide is intended to help you set up Docker Engine on a single machine for testing and learning purposes. In a production environment, it is recommended to use Docker Desktop or another Docker management solution.
- This guide assumes you have administrative privileges on your Windows 10 machine.
- The command line examples provided are for Command Prompt (cmd). If you prefer using PowerShell, you can use the equivalent PowerShell commands.