Welcome to this simple tutorial to set up an RHEL8 (Redhat Enterprise Linux 8) docker container.
To Download Docker Desktop click here . After Downloading follow the steps below:
-
Double click on the setup, you will see the following:
[note: it is recommended to untick Install required Windows components for WSL 2, if you want WSL 2 capability then follow the WSL2 setup section ]
-
Wait for setup to finish and restart your computer. Docker is now installed.
To install RHEL-8 Container open command prompt, and follow the steps below:
-
open cmd and type the following command
docker search registry.access.redhat.com/ubi
press Enter. You will see this,
-
Next Type this command in the Command prompt,
docker run -it --name rhel8 registry.access.redhat.com/ubi8/ubi:8.1 bash
it will look like this,
you have successfully created an RHEL-8 docker container.
-
You will see the following in your docker desktop application,
click on the ">_" symbol to start the container, it should look something like this,
Congratulations you are now done with the container setup.
Do this step if you are getting this error or if you have checked the option during setup.
first we need to enable WSL (Windows Subsystem for linux), follow the steps below:
-
click on search icon on taskbar -> type "Turn Windows features on or off"
-
you will see a menu like this:
Check/Tick Windows Subsystem for linux, click ok and wait for it to enable and the prompt will ask you to restart your computer, then restart your computer.
-
Now you have to update WSL1 to WSL2, download the update from here, install it .
-
Open CMD(command prompt) and type the following command and press enter:
wsl --set-default-version 2