Debian – Jessie – Installation docker-ce
| Script d’installation DOCKER CE
root@srv-khanh78:/data/DOCKER/DEBIAN# cat debian-install-docker-ce.sh
#!/bin/bash
# https://docs.docker.com/engine/installation/linux/docker-ce/debian/#docker-ee-customers
sudo apt-get remove docker docker-engine docker.io
cp -p /etc/apt/source.list /etc/apt/source.list.`date ‘+%d%m%Y’`
echo “deb http://mirror.cc.columbia.edu/debian jessie main contrib non-free” >>/etc/apt/source.list
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add –
sudo apt-key fingerprint 0EBFCD88
lsb_release -da
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable”
sudo apt-get update
sudo apt-get install docker-ce
sudo docker –version
sudo docker run hello-world
root@srv-khanh78:/data/DOCKER/DEBIAN# |
root@debian:~/docker-dtk# sudo apt-key fingerprint 0EBFCD88
/etc/apt/trusted.gpg
——————–
pub 4096R/0EBFCD88 2017-02-22
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb) <docker@docker.com>
sub 4096R/F273FCD8 2017-02-22/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
———————————————————-
root@debian:~/docker-dtk# lsb_release -cs
jessie
root@debian:~/docker-dtk# sudo add-apt-repository \
“deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable”
root@debian:~/docker-dtk# cat /etc/apt/sources.list
#—————————————————————————————–
# Security
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
# France mirror
deb http://ftp.fr.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ jessie main contrib non-free
#—————————————————————————————–
#Docker
deb http://http.debian.net/debian jessie-backports main
deb [arch=amd64] https://download.docker.com/linux/debian jessie stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian jessie stable
root@debian:~/docker-dtk#
#apt-get update && apt-get install docker-ce
root@debian:~/docker-dtk# docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:07:28 2017
OS/Arch: linux/amd64
Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:07:28 2017
OS/Arch: linux/amd64
Experimental: false
root@debian:~/docker-dtk# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 17.03.1-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 0
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Kernel Version: 3.16.0-4-amd64
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.172 GiB
Name: debian
ID: 2FW5:LE4G:WOYJ:QMYO:FWES:2ML4:V3N2:CVOL:B6CW:I2W2:KH5K:QR7T
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false |
Comments