updated script
This commit is contained in:
parent
62dad366ae
commit
e95792c3ed
1 changed files with 9 additions and 10 deletions
|
|
@ -1,25 +1,24 @@
|
|||
# Add Docker's official GPG key:
|
||||
echo ==> apt-get update
|
||||
echo "==> apt-get update"
|
||||
sudo apt-get update
|
||||
echo ==> apt-get install ca-certificates curl
|
||||
echo "==> apt-get install ca-certificates curl"
|
||||
sudo apt-get install ca-certificates curl
|
||||
echo ==> install -m 0755 -d /etc/apt/keyrings
|
||||
echo "==> install -m 0755 -d /etc/apt/keyrings"
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
echo ==> curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
echo "==> curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc"
|
||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
echo ==> chmod a+r /etc/apt/keyrings/docker.asc
|
||||
echo "==> chmod a+r /etc/apt/keyrings/docker.asc"
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
# Add the repository to Apt sources:
|
||||
echo ==> add the repo to apt sources
|
||||
echo "==> add the repo to apt sources"
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
echo ==> apt-get update
|
||||
echo "==> apt-get update"
|
||||
sudo apt-get update
|
||||
echo ==> apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
echo "==> apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin"
|
||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
|
||||
echo ==> systemctl start docker
|
||||
echo "==> systemctl start docker"
|
||||
sudo systemctl start docker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue