7 lines
350 B
Bash
Executable File
7 lines
350 B
Bash
Executable File
#!/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 |