CoolFace
Apppublic

SRNI-2005/ctf

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
install_docker.sh39 linesDownload Raw Back to scripts
1#!/bin/bash2 3# Script to install docker in Debian Guest VM4# per: https://docs.docker.com/engine/installation/linux/debian/#install-docker-ce5 6# Install packages to allow apt to use a repository over HTTPS7sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \8    python-pip \9    apt-transport-https \10    ca-certificates \11    curl \12    gnupg2 \13    software-properties-common14 15# Add Docker’s official GPG key16curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -17 18# Set up the stable repository. 19sudo add-apt-repository \20   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \21   $(lsb_release -cs) \22   stable"23 24# Update the apt package index25sudo apt-get update26 27# Install the latest version of Docker28sudo DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce29 30# Add user to the docker group31# Warning: The docker group grants privileges equivalent to the root user. 32sudo usermod -aG docker ${USER}33 34# Configure Docker to start on boot35sudo systemctl enable docker36 37# Install docker-compose38pip install docker-compose39