From 65312f45a4536ed80d82d5da7fce69b4c3c847d3 Mon Sep 17 00:00:00 2001 From: eliranwong Date: Tue, 19 Nov 2024 20:17:37 +0000 Subject: [PATCH] support docker --- docker_setup/install_docker.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docker_setup/install_docker.sh b/docker_setup/install_docker.sh index e69de29bb2..4b3eeef1ad 100644 --- a/docker_setup/install_docker.sh +++ b/docker_setup/install_docker.sh @@ -0,0 +1,18 @@ +# Add Docker's official GPG key: +apt-get update +apt-get install ca-certificates curl +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 + +# Add the repository 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 "$VERSION_CODENAME") stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null + +apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin +docker run hello-world + +# Allow non-root user to access docker +chmod 777 /var/run/docker.sock \ No newline at end of file