Skip to content

Instantly share code, notes, and snippets.

@nikallass
Last active January 3, 2024 11:12
Show Gist options
  • Save nikallass/e5124756d0e2bdcf8981827f3ed40bcc to your computer and use it in GitHub Desktop.
Save nikallass/e5124756d0e2bdcf8981827f3ed40bcc to your computer and use it in GitHub Desktop.
Kali 2017.1 x64, Docker-ce Install script
#!/bin/bash
# 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" >> /etc/apt/sources.list
sudo apt-get update
# install Docker
sudo apt-get install docker-ce
# 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
@stevensdotb
Copy link

I really appreciate your help. It works fine! :D

@GoncaloPT
Copy link

Thanks, worked like a charm!

@lv7777
Copy link

lv7777 commented Sep 23, 2018

thanks 👍
and can use 2018.3a or 2018.2 ...etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment