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

Both sides previous revisionPrevious revision
Next revision
Previous revision
manuals:server:docker_for_debian [2018/08/30 08:35] – [Current state] vikermanuals:server:docker_for_debian [2023/02/02 23:47] (current) – deleted openVZ parolek
Line 1: Line 1:
-====== Docker for Debian 8 ====== 
- 
-This page describes usage of docker in our VPS, i.e. under 
-[[information:openvz|OpenVZ]], which has its limitations, see below. 
- 
-Docker can be used without any limitations using [[manuals:vps:kvm|KVM]]. 
- 
-===== Current state ===== 
-Docker is working up until version **1.10**. So far, nobody has been 
-successful with newer versions, as it most likely requires patching kernel. 
- 
-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: 
- 
-  echo "JoinControllers=cpu,cpuacct,cpuset freezer,devices" >> /etc/systemd/system.conf 
- 
-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 
-  mkdir /sys/fs/cgroup/freezer,devices 
-  mount -t cgroup cgroup /sys/fs/cgroup/freezer,devices -o freezer,devices 
-  mkdir /sys/fs/cgroup/cpu,cpuacct,cpuset 
-  mount -t cgroup cgroup /sys/fs/cgroup/cpu,cpuacct,cpuset/ -o cpu,cpuacct,cpuset 
- 
-4) Install the https module for apt: 
- 
-  apt-get update 
-  apt-get install apt-transport-https 
- 
-5) Add a mirror for Docker: 
- 
-  echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list 
- 
-6) Install Docker: 
- 
-  apt-get update 
-  apt-get install docker-engine=1.10.3-0~jessie 
-  apt-mark hold docker-engine 
- 
-7) Change permissions: 
- 
-  usermod -aG docker $USER 
- 
-8) Run Docker using the following sequence: 
- 
-<note> 
-2016-02-13 (profa) - Docker started automatically after installation 
-</note> 
- 
-  systemctl daemon-reload 
-  systemctl enable docker 
-  systemctl start docker 
-  systemctl status docker 
- 
-It should run properly. You can test it: 
- 
-  docker run --rm hello-world  
- 
-If Docker doesn’t start, restart the VPS. 
- 
  
manuals/server/docker_for_debian.1535618102.txt.gz · Last modified: 2018/08/30 08:35 by viker