-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathinstallDocker.sh
More file actions
20 lines (16 loc) · 806 Bytes
/
installDocker.sh
File metadata and controls
20 lines (16 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -euo pipefail
DIR_ME=$(realpath $(dirname $0))
sudo apt update
sudo apt remove docker docker.io containerd runc
sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y --no-install-recommends docker-ce
VERSION_DOCKER_COMPOSE="v2.1.1"
if [[ ! -d ~/.docker/cli-plugins ]]; then
mkdir -p ~/.docker/cli-plugins
fi
curl -fSL https://github.com/docker/compose/releases/download/${VERSION_DOCKER_COMPOSE}/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose