User Tools

Site Tools


manuals:server:docker_for_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
manuals:server:docker_for_debian [2016/10/30 14:49] – created tomsmanuals:server:docker_for_debian [2020/04/10 22:46] – [Docker for Debian 8] snajpa
Line 1: Line 1:
 ====== Docker for Debian 8 ====== ====== Docker for Debian 8 ======
  
-Docker runs well under Debian 8. Its installation is just a bit more complicated than the Docker documentation states+<note info> 
 +This page contains outdated information.
  
-0) Check the version of your kernelFor Docker 1.9 1.10 you need version 113.11:+Current production platform, powering our virtual servers, **[[manuals:vps:vpsAdminOS]]**, runs current Docker out of box. 
 +</note>
  
-  $ uname -a +This page describes usage of docker in our VPS, i.eunder 
-  Linux alfa 3.16.6-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 GNU/Linux+[[information:openvz|OpenVZ]], which has its limitations, see below.
  
-(the number after “stab” is the important version)+Docker can be used without any limitations using [[manuals:vps:kvm|KVM]].
  
-<note warning> +===== Current state ===== 
-Docker >=1.11 **does not run** on this kernel+Docker is working up until version **1.10**. So far, nobody has been 
-</note>+successful with newer versions, as it most likely requires patching kernel.
  
-1) VpsAdmin / VPS → Features → you need to turn on Bridge, iptables and TUN/TAP (the VPS restarts itself)+manual is working for me on Debian 9/Stretch with last docker version, only adjust is to add docker key into keyring: 
 + 
 +apt-get install debian-keyring ; gpg --keyserver pgp.mit.edu --recv-keys F76221572C52609D ; gpg --armor --export F76221572C52609D | apt-key add -  
 + --- //[[viker@viker.cz|Vilem Kebrt]] 2018/08/30 10:33// 
 +===== Installation ===== 
 + 
 +Docker runs well under Debian 8. Its installation is just a bit more complicated than the Docker documentation states.  
 + 
 +1) vpsAdmin / VPS → Features → you need to turn on Bridge, iptables and TUN/TAP (the VPS restarts itself)
  
 2) Run the following command: 2) Run the following command:
Line 21: Line 31:
  
 3) Mount the following mount points: 3) Mount the following mount points:
 +
 +<note>
 +2016-02-13 (profa) - tried on the Playground of a fresh install of Debian 8 – this step was not necessary
 +
 +2016-08-11 (graywolf) - this step is not necessary. It is enough if you restart after the previous step.
 +</note>
  
   mount -t tmpfs tmpfs /sys/fs/cgroup   mount -t tmpfs tmpfs /sys/fs/cgroup
Line 27: Line 43:
   mkdir /sys/fs/cgroup/cpu,cpuacct,cpuset   mkdir /sys/fs/cgroup/cpu,cpuacct,cpuset
   mount -t cgroup cgroup /sys/fs/cgroup/cpu,cpuacct,cpuset/ -o cpu,cpuacct,cpuset   mount -t cgroup cgroup /sys/fs/cgroup/cpu,cpuacct,cpuset/ -o cpu,cpuacct,cpuset
- 
-2016-02-13 (profa) - tried on the Playground of a fresh install of Debian 8 – this step was not necessary 
- 
-2016-08-11 (graywolf) - this step is not necessary. It is enough if you restart after the previous step. 
  
 4) Install the https module for apt: 4) Install the https module for apt:
Line 36: Line 48:
   apt-get update   apt-get update
   apt-get install apt-transport-https   apt-get install apt-transport-https
 +  
  
 5) Add a mirror for Docker: 5) Add a mirror for Docker:
  
   echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list   echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list
 +  
 +    Debian 9 and latest docker: 
 +    Add necesary key to APT:
 +  
 +    apt-get install debian-keyring
 +    gpg --keyserver pgp.mit.edu --recv-keys F76221572C52609D
 +    gpg --armor --export F76221572C52609D | apt-key add -
 +
  
 6) Install Docker: 6) Install Docker:
Line 52: Line 73:
  
 8) Run Docker using the following sequence: 8) Run Docker using the following sequence:
 +
 +<note>
 +2016-02-13 (profa) - Docker started automatically after installation
 +</note>
  
   systemctl daemon-reload   systemctl daemon-reload
Line 57: Line 82:
   systemctl start docker   systemctl start docker
   systemctl status docker   systemctl status docker
- 
-2016-02-13 (profa) - Docker started automatically after installation 
  
 It should run properly. You can test it: It should run properly. You can test it:
Line 65: Line 88:
  
 If Docker doesn’t start, restart the VPS. If Docker doesn’t start, restart the VPS.
 +