This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
manuals:server:docker_for_debian [2016/10/30 14:49] – created toms | manuals: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 | + | Current production platform, powering our virtual servers, **[[manuals: |
+ | </note> | ||
- | $ uname -a | + | This page describes usage of docker in our VPS, i.e. under |
- | Linux alfa 3.16.6-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 GNU/Linux | + | [[information: |
- | (the number after “stab” is the important version) | + | Docker can be used without any limitations using [[manuals: |
- | <note warning> | + | ===== Current state ===== |
- | Docker | + | Docker |
- | </ | + | successful with newer versions, as it most likely requires patching kernel. |
- | 1) VpsAdmin | + | 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 - | ||
+ | --- // | ||
+ | ===== Installation ===== | ||
+ | |||
+ | Docker runs well under Debian 8. Its installation is just a bit more complicated than the Docker documentation states. | ||
+ | |||
+ | 1) vpsAdmin | ||
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: | ||
+ | |||
+ | < | ||
+ | 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. | ||
+ | </ | ||
mount -t tmpfs tmpfs / | mount -t tmpfs tmpfs / | ||
Line 27: | Line 43: | ||
mkdir / | mkdir / | ||
mount -t cgroup cgroup / | mount -t cgroup cgroup / | ||
- | |||
- | 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:// | echo "deb https:// | ||
+ | | ||
+ | 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: | ||
+ | |||
+ | < | ||
+ | 2016-02-13 (profa) - Docker started automatically after installation | ||
+ | </ | ||
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. | ||
+ | |||