install docker

This commit is contained in:
2022-12-24 18:10:38 -06:00
parent b9e30f2e0e
commit 8b57dff8d4
10 changed files with 33 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
apt-transport-https
gnupg2
software-properties-common

View File

@@ -0,0 +1,7 @@
#!/bin/bash
#change to "debian" if necessary:
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) stable" | \
tee /etc/apt/sources.list.d/docker.list
apt update

View File

@@ -0,0 +1,3 @@
docker-ce
docker-compose-plugin
cgroupfs-mount

View File

@@ -0,0 +1,6 @@
#!/bin/bash
systemctl enable docker
systemctl start docker
groupadd docker
gpasswd -a pi docker
newgrp docker