Basic Debian build for docker-ce (vmware based)

Had a friend ask about this, so I thought I would write up really quick what I do.

First grab the netinst version of Debian — it's a small CD image that contains just the core Debian installer and a small core set of text-mode programs (known as "standard" in Debian). To install a desktop or other common software, you'll also need either an internet connection or some other Debian CD/DVD images.

Basic hardware requirements for your VM depend on what you want, but I would start with 4 vCPUs, 8GB RAM, and 64GB of HDD.

Once you get your VM up and running, SSH into it and start installing Docker. Here is the official guide.

Set up the repository

  1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:

    sudo apt-get update
    sudo apt-get install \
        ca-certificates \
        curl \
        gnupg \
        lsb-release
  2. Add Docker's official GPG key:

    sudo mkdir -p /etc/apt/keyrings
    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  3. Set up the repository:

    echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null