viernes, 12 de mayo de 2017

Install docker-engine [Kali 2017.1]

I read a blog post regarding how to install docker on Kali 2016.2 and for the last release at the time of writing this there's one step to add, the rest is alike.

Since Kali has root as the default user, it isn't need to use sudo command but, if you try to do with an unprivileged user you'll have to.

Here are the steps to install docker (docker-engine) on Kali 2017.1:

1. Create a backports file and add the entry for Debian Wheezy:

echo 'deb http://http.debian.net/debian wheezy-backports main' > /etc/apt/sources.list.d/backports.list && apt-get update

2. Install ca-certificates and allow APT to operate via https: 

apt-get install apt-transport-https ca-certificates

3. For step 4 there's a needed package in order to execute the whole command, so let's install this package named 'dirmngr'

apt-get install dirmngr

If you opt to install without this package you'll have errors similar like...

gpg: failed to start the dirmngr '/usr/bin/dirmngr': The file or directory does not exist
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.O06UOd0ijZ/S.dirmngr' failed: The file or directory does not exist
gpg: keyserver receive failed: No dirmngr

In order to continue you need to install it.

4. Add the appropriate GPG key:

apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

5. Add the appropriate Docker source entry: 

echo 'deb https://apt.dockerproject.org/repo debian-wheezy main' > /etc/apt/sources.list.d/docker.list && apt-get update

6. Install Docker:

apt-get install docker-engine

In this step, you'll have to install a bunch of packages that are needed in order the right working of docker. aufs-dkms, dkms, some kernel headers, etc.

After installation the system starts the service it self. Confirm it with:

service docker status

7. Verify that Docker is working: 

docker run hello-world

In this last step it will take a little bit of time while download (pull) the image hello-world from github repo. At the end you will see a message about the recently pulled image.

Source and original article is HERE!

#happyhacking

No hay comentarios.:

Publicar un comentario