Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made install-docker-ce.sh no longer require user interaction
- Loading branch information
1 parent
be6a34b
commit 697ec4b
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/bash | ||
|
||
sudo apt update | ||
sudo apt install apt-transport-https ca-certificates curl software-properties-common | ||
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | ||
|
||
sudo apt update | ||
sudo apt install docker-ce | ||
sudo apt install -y docker-ce | ||
sudo systemctl status docker.service | ||
|
||
sudo usermod -aG docker ${USER} |