Projets-2016-2017-Plateform Analyse Données IOT/scriptdocker: Difference between revisions

From air
Jump to navigation Jump to search
(Created page with "# Pour installer docker : # - rendre ce script excutable : chmod +x installation_docker.sh # - executer le script : ./installation_docker.sh sudo apt-get update sudo apt-get...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
# Pour installer docker :
== Pour installer docker : ==
# - rendre ce script excutable : chmod +x installation_docker.sh
# - rendre le script excutable : chmod +x installation_docker.sh
# - executer le script : ./installation_docker.sh
# - exécuter le script : ./installation_docker.sh


sudo apt-get update



sudo apt-get install curl \
sudo apt-get update

sudo apt-get install curl \
linux-image-extra-$(uname -r) \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
linux-image-extra-virtual


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


curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -


apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D


sudo add-apt-repository \
sudo add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
"deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
ubuntu-$(lsb_release -cs) \
main"
main"


sudo apt-get update
sudo apt-get update


sudo apt-get -y install docker-engine
sudo apt-get -y install docker-engine


sudo docker run hello-world
sudo docker run hello-world

Latest revision as of 18:26, 23 March 2017

Pour installer docker :

  1. - rendre le script excutable : chmod +x installation_docker.sh
  2. - exécuter le script : ./installation_docker.sh


 sudo apt-get update
 sudo apt-get install curl \
   linux-image-extra-$(uname -r) \
   linux-image-extra-virtual
 sudo apt-get install apt-transport-https \
                      ca-certificates
 curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
 apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
 sudo add-apt-repository \
      "deb https://apt.dockerproject.org/repo/ \
      ubuntu-$(lsb_release -cs) \
      main"
 sudo apt-get update
 sudo apt-get -y install docker-engine
 sudo docker run hello-world