Files
docker_system/install_docker.sh
KEriks ef6084326c Cleanup
Port bugfix

README

Ubuntu's docker install script update
2022-07-07 16:21:03 +03:00

17 lines
602 B
Bash
Executable File

#!/bin/bash
set -e
if [[ ! $(id -u) -eq 0 ]]
then
sudo $@
else
apt update
apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update
apt install docker-ce docker-ce-cli containerd.io
curl -L https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
fi