#!/bin/bash | |
# update apt-get | |
export DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get update | |
# remove previously installed Docker | |
sudo apt-get purge lxc-docker* | |
sudo apt-get purge docker.io* | |
# add Docker repo | |
sudo apt-get install -y apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
cat > /etc/apt/sources.list.d/docker.list <<'EOF' | |
deb https://apt.dockerproject.org/repo debian-stretch main | |
EOF | |
sudo apt-get update | |
# install Docker | |
sudo apt-get install -y docker-engine | |
sudo service docker start | |
sudo docker run hello-world | |
# configure Docker user group permissions | |
sudo groupadd docker | |
sudo gpasswd -a ${USER} docker | |
sudo service docker restart | |
# set Docker to auto-launch on startup | |
sudo systemctl enable docker |
This comment has been minimized.
This comment has been minimized.
works great. thanks! |
This comment has been minimized.
This comment has been minimized.
Works perfectly. |
This comment has been minimized.
This comment has been minimized.
works to kali 2016.2? i dont break my kali |
This comment has been minimized.
This comment has been minimized.
Perfect! |
This comment has been minimized.
This comment has been minimized.
Yep It's work. Thanks |
This comment has been minimized.
This comment has been minimized.
Add tons of problems,some help plz Get:2 http://apt.dockerproject.org/repo debian-stretch InRelease [48.7 kB] |
This comment has been minimized.
This comment has been minimized.
@f3rn4s, |
This comment has been minimized.
This comment has been minimized.
Nice work man! |
This comment has been minimized.
This comment has been minimized.
Seems to work for me after adding --allow-unauthenticated to line 21 |
This comment has been minimized.
This comment has been minimized.
Thanks! I make this for kali 2017.1 x64 for new Docker-ce https://gist.github.com/nikallass/e5124756d0e2bdcf8981827f3ed40bcc |
This comment has been minimized.
This comment has been minimized.
Thanks! Works good |
This comment has been minimized.
This comment has been minimized.
GREATE!!! THANKS A LOT! i was having problems adding the repo "permissions denied" so i tried this: Done. docker will exist. then continue the script steps. |
This comment has been minimized.
This comment has been minimized.
Thanks for your script, unfortunately I have an issue during installing 'docker-engine' package: "E: Package 'docker-engine' has no installation candidate". I installed 'docker' package, but when trying to start a service getting following: "Failed to start docker.service: Unit docker.service not found." Meanwhile 'apt-cache policy docker' returns me:
Here is details of my kali: Linux kali 4.9.0-kali3-686-pae #1 SMP Debian 4.9.18-1kali1 (2017-04-04) i686 GNU/Linux Seems that tried a lot of different manipulations but no success.. Thanks |
This comment has been minimized.
This comment has been minimized.
This works for me after install software-properties-common and dirmngr, between lines 17 and 18 |
This comment has been minimized.
This comment has been minimized.
wow great docs, thanks |
This comment has been minimized.
This comment has been minimized.
Thanks Man Really Helped me !!! |
This comment has been minimized.
This comment has been minimized.
Thanks man, it works perfectly. |
This comment has been minimized.
This comment has been minimized.
Thank you! Just one important remark: you need to |
This comment has been minimized.
This comment has been minimized.
cat /etc/issue This script kind of broken "sudo apt install...." completely Prior running this script, i was able to install "Docker" by "sudo apt install docker" However my docker service was not running, so i installed this script, it changed "/etc/apt/sources.list" in such a way that... now it's not able to connect to "https://http.kali.org" or anything else when i ping "www.google.com" i get msgs back... so i don't think so it's proxy or network issue ` =========== root@kali:/opt# ping www.google.com |
This comment has been minimized.
This comment has been minimized.
Lifesaver! Thank you |
This comment has been minimized.
I had some troubles with the "deb https://apt.dockerproject.org/repo debian-stretch main" on a fresh kali installation. I had to change the "https" to "http" to make it work.