Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


1- install docker

2- download an image

3- creating a Dockerfile



Learn Docker in 12 Minutes:

...

https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository



1a- check the release

me@ubuntu:~$ lsb_release -a

...

Release:        16.10
Codename:       yakkety



1b- remove all docker installation

#sudo apt-get remove docker docker-engine



1c- update all package + Install important packakes

sudo apt-get update

sudo apt-get install \

...

   software-properties-common


1d- Add Docker’s official GPG key:

curl -fsSL <DOCKER-EE-URL>/gpg | sudo apt-key add -

...

sub   4096R/F273FCD8 2017-02-22



1e- set up the stable repository ( Debian or Ubuntu )


sudo add-apt-repository \

...

  $(lsb_release -cs) \
  stable"


1f- update all package + Install docker


sudo apt-get update

apt-get install docker-ce




1g- check the installed docker version


me@ubuntu:~$ apt-cache madison docker-ce

...

docker-ce | 17.03.0~ce-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages




2a- Basic test: hello-world


me@ubuntu:~$ sudo docker run hello-world

...

https://docs.docker.com/engine/userguide/



2b- More ambitious test:


root@ubuntu:~# docker run -it ubuntu bash

...

0519ec79d167        hello-world         "/hello"            2 minutes ago        Exited (0) 2 minutes ago                       romantic_bell



Kali 2016.1, Docker Install script

https://gist.github.com/apolloclark/f0e3974601346883c731

...