Created
January 27, 2026 00:31
-
-
Save douglasfernandes/924b89fc2f291887dd4f7e434782ff96 to your computer and use it in GitHub Desktop.
Instalação do docker-ce
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
| sudo apt-get update -y | |
| sudo apt-get install ca-certificates curl gnupg lsb-release -y | |
| sudo 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-get update -y | |
| sudo apt-get install docker-ce docker-ce-cli containerd.io -y | |
| # docker run hello-world | |
| sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment