


Now that Apt knows where to find the official Docker repositories, we need to tell Apt to only use the Stable branch for Docker packages. Enter the command below to add the Docker repo to your Apt index:Ĭurl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgĥ. After Apt is done updating, we need to add the official Docker repository to Apt’s index. If Apt does prompt for confirmation, review the changes in the command-line, and if you’re satisfied with those changes, accept them.Ĥ. Give Apt a minute or two to install those packages.

Sudo apt install ca-certificates curl gnupg lsb-releaseģ. After Apt updates its package index, we need to ensure that Apt can use SSL connections to download packages from its index. In the terminal, run the command below:Ģ. First, we need to update the Apt package manager to ensure that you have the latest packages indexed in the Apt repositories on your computer. Consult with the IT manager in your organization to discuss the specifics of your organization’s virtualization environment.Īfter your Ubuntu VM is operational, go ahead and SSH into that VM. There are many ways to make virtual machines, but that’s beyond the scope of this article. We’ll assume you’re targeting and using Ubuntu for the remaining portion of this article.īut first, you’ll need to create a virtual machine using the Ubuntu OS. To complete this process, you should understand how to work with the command-line environment in Linux and the package manager for your Linux distribution of choice. In this article, we’ll create a virtualized Linux environment and then install the Docker app. Docker is nothing more than a standard application or service.
