summaryrefslogtreecommitdiffstats
path: root/scripts/install_docker.sh
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-02-01 19:25:41 +0100
committerivarlovlie <git@ivarlovlie.no>2022-02-01 19:25:41 +0100
commit69a416caa2bce3dc4a3aff61fb8ae955f7561e51 (patch)
tree7f80e7f3143872c2e0a8867399abfcd35c9d5dbc /scripts/install_docker.sh
parentfdee7340ac18b0866abf0c44643f4c937fc4cf80 (diff)
downloaddotfiles-server-69a416caa2bce3dc4a3aff61fb8ae955f7561e51.tar.xz
dotfiles-server-69a416caa2bce3dc4a3aff61fb8ae955f7561e51.zip
Reorganise scripts
Diffstat (limited to 'scripts/install_docker.sh')
-rwxr-xr-xscripts/install_docker.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/install_docker.sh b/scripts/install_docker.sh
new file mode 100755
index 0000000..56594ba
--- /dev/null
+++ b/scripts/install_docker.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+sudo apt-get install -y \
+ apt-transport-https \
+ ca-certificates \
+ curl \
+ gnupg-agent \
+ software-properties-common
+
+curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+sudo apt-key fingerprint 0EBFCD88
+sudo add-apt-repository \
+ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
+ $(lsb_release -cs) \
+ stable"
+sudo apt-get update
+sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose
+