Created
October 21, 2021 15:30
-
-
Save marten-cz/4c2396042ff395e838989f551dcae230 to your computer and use it in GitHub Desktop.
Server install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
apt-get update | |
apt-get upgrade | |
apt-get install -y vim mc unzip | |
# Docker | |
apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
apt-get update | |
apt-get install -y docker-ce docker-ce-cli containerd.io | |
# Users | |
useradd -m -s /bin/bash rancher | |
usermod -aG docker rancher |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment