docker
This commit is contained in:
parent
80ed6358d8
commit
0d21836083
2 changed files with 11 additions and 0 deletions
|
@ -3,4 +3,5 @@
|
||||||
sudo openssl genrsa -out /root/ca.key 4096
|
sudo openssl genrsa -out /root/ca.key 4096
|
||||||
sudo openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /root/ca.crt -subj "/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/CN=INTERSTELLAR"
|
sudo openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /root/ca.crt -subj "/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/CN=INTERSTELLAR"
|
||||||
sudo cp /root/ca.crt /usr/local/share/ca-certificates/
|
sudo cp /root/ca.crt /usr/local/share/ca-certificates/
|
||||||
|
sudo cp /root/ca.crt /etc/ssl/certs/
|
||||||
sudo update-ca-certificates
|
sudo update-ca-certificates
|
||||||
|
|
10
installation/docker.sh
Executable file
10
installation/docker.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install ca-certificates curl
|
||||||
|
sudo install -m 0755 -d /etc/apt/keyrings
|
||||||
|
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
||||||
|
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||||
|
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
|
||||||
|
sudo apt-get update
|
Loading…
Reference in a new issue