Installation de Docker sur un Gandi Serveur

Installation de Docker sur un Gandi Serveur.
1) Paramètre du serveur :
Localisation : Paris (France)
Coeur : 2
Ram : 2048 Mo
Interface : 1 IPV4
Disque : 10 Go
Système d’exploitation : Debian 8 64 bits (HVM)
Nom du disque système : sysdisk01
Nom (Hostname) : server01
2) Connexion au serveur :

[~] ➔ ssh admin@95.142.169.46
admin@95.142.169.46's password:
Linux localhost 3.12.46-guest-39-a97a54c-x86_64 #4 SMP Mon Aug 10 11:59:25 UTC 2015 x86_64 GNU/Linux
[-----------------------------------------]
  Gandi - Welcome to your new OS image.
  Documentation :
   [EN] http://wiki.gandi.net/en/iaas
   [FR] http://wiki.gandi.net/fr/iaas
  Configuration file for Gandi :
   /etc/default/gandi or
   /etc/sysconfig/gandi
[-----------------------------------------]
admin@server01:~$
admin@server01:~$ su
Password:
root@server01:/home/admin# cd
root@server01:~#

3) Mise-à-jour du serveur :

root@server01:~# apt-get update && apt-get upgrade

4) Installation de wget :

root@server01:~# apt-get install wget

5) Installation de Docker :

root@server01:~# wget -qO- https://get.docker.com/ | sh
...
+ sh -c docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 12:59:02 UTC 2015
 OS/Arch:      linux/amd64
Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 12:59:02 UTC 2015
 OS/Arch:      linux/amd64
...

6) Test 1 :

root@server01:~# docker run hello-world
...
Status: Downloaded newer image for hello-world:latest
Hello from Docker.
This message shows that your installation appears to be working correctly.
...

7) Test 2 :

root@server01:~# docker run docker/whalesay cowsay boo
Unable to find image 'docker/whalesay:latest' locally
latest: Pulling from docker/whalesay
2880a3395ede: Pull complete
515565c29c94: Pull complete
98b15185dba7: Pull complete
2ce633e3e9c9: Pull complete
35217eff2e30: Pull complete
326bddfde6c0: Pull complete
3a2e7fe79da7: Pull complete
517de05c9075: Pull complete
8f17e9411cf6: Pull complete
ded5e192a685: Pull complete
Digest: sha256:178598e51a26abbc958b8a2e48825c90bc22e641de3d31e18aaf55f3258ba93b
Status: Downloaded newer image for docker/whalesay:latest
 _____
< boo >
 -----
    \
     \
      \
                    ##        .
              ## ## ##       ==
           ## ## ## ##      ===
       /""""""""""""""""___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
       \______ o          __/
        \    \        __/
          \____\______/
root@server01:~#

8) Afficher les images disponibles :

root@server01:~# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
hello-world         latest              0a6ba66e537a        11 weeks ago        960 B
docker/whalesay     latest              ded5e192a685        7 months ago        247 MB

9) Lien :
https://docs.docker.com/linux/step_one/

Comments are closed, but trackbacks and pingbacks are open.