sudo curl -fsSL https://get.docker.com -o get-docker.sh
root@labs-02:~# curl -fsSL https://get.docker.com -o get-docker.sh
root@labs-02:~#
root@labs-02:~# ls -l
total 24
-rw-r--r-- 1 root root 22600 Oct  4 08:43 get-docker.sh
root@labs-02:~#

sudo sh ./get-docker.sh --dry-run
root@labs-02:~# sh ./get-docker.sh --dry-run
# Executing docker install script, commit: 39040d838e8bcc48c23a0cc4117475dd15189976
apt-get -qq update >/dev/null
DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null
install -m 0755 -d /etc/apt/keyrings
curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" > /etc/apt/sources.list.d/docker.list
apt-get -qq update >/dev/null
DEBIAN_FRONTEND=noninteractive apt-get -y -qq install docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
root@labs-02:~#

Menjalankan script instalasi docker

sudo sh get-docker.sh

Leave a Reply

Your email address will not be published. Required fields are marked *