kali install docker
2017-10-01 本文已影响0人
StevenZack
Preparation
Add Docker PGP key:
curl -fsSLhttps://download.docker.com/linux/debian/gpg | sudo apt-key add -
Configure Docker APT repository:
echo 'debhttps://download.docker.com/linux/debianstretch stable' > /etc/apt/sources.list.d/docker.list
Update APT:
apt-get update
Install Docker
If you had older versions of Docker installed, uninstall them:
apt-get remove docker docker-engine docker.io
Install Docker:
apt-get install docker-ce
Test:
docker run hello-world
After
installation, Docker service will be started, but not enabled (i.e. it
will not be started automatically after reboot). To start it:
systemctl start docker
To start Docker automatically upon reboot (do it on your own risk!):
systemctl enable docker