Step 4: Install Docker

To set up Docker for the workloads, follow these steps:

For Ubuntu/Debian-based Systems:

  1. Update the system and install the required dependencies for Docker:*
  sudo apt update
  sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
  1. Add Docker’s official GPG key:
  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  1. Set up the Docker stable repository:
  echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  1. Update the apt package list to include Docker:
  sudo apt update
  1. Install Docker:
  sudo apt install -y docker-ce
  1. Start Docker and verify that it’s running:
  sudo systemctl start docker
  sudo docker --version

This will show the installed Docker version, confirming that Docker has been successfully installed.

Step 5: Install Python 3.10 and Create Virtual Environment (Optional)

If you need Python 3.10 to set up a virtual environment, follow these steps:

Install Python 3.10 and the venv package:

sudo apt install -y python3.10-venv

Once installed, you can create a virtual environment using the following command:

python3.10 -m venv myenv

Replace myenv with your desired virtual environment name.

Once these steps are complete, Docker will be ready for running containers, and Python 3.10 will be available for creating virtual environments.

Updated: