Created
February 4, 2019 15:59
-
-
Save jishanshaikh4/7e7a9c23a1558d8fec49a6e800e51252 to your computer and use it in GitHub Desktop.
How to install docker in Kali linux?
This file contains 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
#!/bin/bash Taken from https://gist.github.com/nikallass/e5124756d0e2bdcf8981827f3ed40bcc | |
# update apt-get | |
export DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get update | |
# remove previously installed Docker | |
sudo apt-get remove docker docker-engine docker.io* lxc-docker* | |
# install dependencies 4 cert | |
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
# add Docker repo gpg key | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
echo "deb https://download.docker.com/linux/debian stretch stable" >> sudo /etc/apt/sources.list | |
# Updating apt-get | |
sudo apt-get update | |
# install Docker (Try docker OR docker-engine OR docker-ce if necessary.) | |
sudo apt-get install docker.io | |
# run Hellow World image | |
sudo docker run hello-world | |
# manage Docker as a non-root user | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
# configure Docker to start on boot | |
sudo systemctl enable docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment