Kali Rolling installing Docker

Source: Internet
Author: User
Tags kali linux

First, installation Preparation

Kali Linux is based on Debian Wheezy, so I installed it in the Debian Wheezy method on the Docker's website, which is a translation.

Test system: Kali rolling 64-bit

Second, the installation process

    • Prerequisite

  Docker requires a 64-bit installation, regardless of your Debian version. In addition, your kernel must be at least 3.10. The latest 3.1 versions or newer maintenance versions are also acceptable.

You can use the following command to view the kernel header version of your Kali

# uname -R

1, for Debian wheezy user I must provide reverse port, enable Backports

(1) Open the /etc/apt/sources.list.d/backports.list file with any editor and create one without the file.

(2) Add a new reverse port entry after deleting all existing entries

Deb http://Http.debian.net/debian wheezy-backports main

(3) Update package information

# Apt-get Update

2. Update Apt Repository

(1) If Docker was previously installed, execute the following command to clear the old repository

# Apt-get purge lxc-docker*# apt-get purge docker.io*

(2) Update the repository information to ensure that APT uses the HTTPS method and install the CA certificate

# apt-get update# aptinstall Apt-transport-https ca-certificates gnupg2

(3) Add a new GPG key (this may fail several times, prompt to accept the failure from the public key server, try a few more times)

# apt-key adv     --keyserver HKP://ha.pool.sks-keyservers.net:80 \  --recv-keys 58118e89f3a912897c070adbf76221572c52609d

(4) Open the /etc/apt/sources.list.d/docker.list file with any editor, and if it does not exist, create a

Delete all existing entries and add new entries (I only list wheezy added, other versions please go to the official website to view)

Deb https://Apt.dockerproject.org/repo debian-wheezy main

(5) Update the APT repository and verify that the APT repository is correct

# apt-get update# apt-cache policy docker-engine
    • Installing Docker

1. Update apt Repository

# Apt-get Update

2. Installing Docker

Install Docker-engine

3. Start Docker Service

# service Docker Start

4. Update Docker

# Apt-get Upgrade Docker-engine

5. Uninstalling Docker

(1) Uninstalling the Docker package

# Apt-get Purge Docker-engine

(2) Uninstall all Docker packages and dependencies

# apt-get Autoremove--purge docker-engine

 (3) If you want to remove all images, containers, and volumes, run the following command

RM -rf/var/lib/docker
    • Reference:

Docker website address: https://docs.docker.com/

Debian installation Docker official tutorial: https://docs.docker.com/engine/installation/linux/debian/

Kali Rolling installing Docker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.