Skip to content

Instantly share code, notes, and snippets.

@keyboardcrunch
Created September 25, 2022 15:01
Show Gist options
  • Select an option

  • Save keyboardcrunch/cad4d023a60e2c4c83aea72243c7dc5e to your computer and use it in GitHub Desktop.

Select an option

Save keyboardcrunch/cad4d023a60e2c4c83aea72243c7dc5e to your computer and use it in GitHub Desktop.
docker and docker-compose install for Ubuntu
apt update
apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -y docker-ce docker-compose
usermod -aG docker ${USER}
systemctl start docker.service
docker ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment