Skip to content

Instantly share code, notes, and snippets.

@socketz
Last active May 20, 2020 10:16
Show Gist options
  • Save socketz/f3ad25dfb65ae8aaf76dd2829b1fe8ca to your computer and use it in GitHub Desktop.
Save socketz/f3ad25dfb65ae8aaf76dd2829b1fe8ca to your computer and use it in GitHub Desktop.
Install Docker & docker-compose on Kali Linux 2020.2
#!/bin/bash
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian buster stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose
sudo systemctl enable docker
# This enables normal users to execute docker commands.
# Source: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
# sudo usermod -aG docker $USER
# newgrp docker # This is for check the change without logout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment