How to install docker in ubuntu?
# replication-ask-ai
v
How to install docker in ubuntu?
k
To install Docker on a Linux-based system, you can follow these steps: 1. Update your existing list of packages:
Copy code
bash sudo apt-get update -y
2. Install a few prerequisite packages which let
apt
use packages over HTTPS:
Copy code
bash sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y
3. Add the GPG key for the official Docker repository to your system:
Copy code
bash curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
4. Add the Docker repository to APT sources:
Copy code
bash 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
5. Update the package database with the Docker packages from the newly added repo:
Copy code
bash sudo apt-get update
6. Finally, install Docker:
Copy code
bash sudo apt-get install docker-ce docker-ce-cli -y
7. Add your user to the docker group:
Copy code
bash sudo usermod -a -G docker $USER
Please note that these instructions are specific to Ubuntu. For other Linux distributions, the commands might vary. Source: [Deploying Airbyte on Azure VM Cloud Shell](https://docs.airbyte.com/deploying-airbyte/on-azure-vm-cloud-shell)