diff --git a/docker_setup/install_docker.sh b/docker_setup/install_docker.sh index e69de29bb..4b3eeef1a 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