Skip to content

Commit

Permalink
support docker
Browse files Browse the repository at this point in the history
  • Loading branch information
eliranwong committed Nov 19, 2024
1 parent f48c55b commit 65312f4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker_setup/install_docker.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 65312f4

Please sign in to comment.