Created
March 2, 2023 12:52
-
-
Save kaustubhn/88ed9611b1ffc45ea316adf9f4c72dc9 to your computer and use it in GitHub Desktop.
Install Docker on Ubuntu 22.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install Docker | |
| sudo apt update | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) 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 | |
| sudo apt update | |
| apt-cache policy docker-ce | |
| sudo apt install docker-ce -y | |
| sudo systemctl status docker | |
| sudo usermod -aG docker ${USER} | |
| # Install Docker Compose Plugin | |
| sudo apt-get update | |
| sudo apt-get install docker-compose-plugin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment