How to Install Docker on RHEL and Ubuntu¶
WHAT TO EXPECT
In this section, users will learn how to install Docker Engine for either RHEL or Ubuntu. For more detailed instructions, see their respective pages on the Docker documentation site:
PLEASE NOTE
For virtual machines it is NOT recommended to install Docker Desktop. Use Docker Engine instead.
For bare metal machines that will run swXtch.io software it is still recommended to use Docker Engine, unless there is a full desktop environment with a display server like X11 or Wayland.
PLEASE NOTE
There are two ways to get Docker. The official (Docker-CE or Community Edition), maintained and hosted by Docker Inc. and Docker.io, maintained and distributed by the OS (RHEL, Ubuntu, etc).
swXtch.io software works with both. But installing our software using the --auto_deps argument will automatically download docker.io.
If docker-ce is needed, then the user must first install that Docker manually, and then install our software.
Installing Docker-ce on RHEL¶
-
Run the following command to prepare the repositories for the Docker install:
-
Install Docker-ce:
-
Continue on to Enabling Docker.
Installing Docker-ce on Ubuntu¶
-
Install Docker:
-
Continue on to Enabling Docker.
Enabling Docker¶
After installing Docker-ce, run the following commands to enable it on your machine: