[vpsFree.cz: community-list] Debian 8 + Docker

Jiří Medvěd admin at jirimedved.cz
Tue Jul 28 16:46:18 CEST 2015


Ahoj,
na podpore bylo par lidi, kterym nefungoval Docker pod Debian 8, tak 
jsem se na to podival a bezi v poradku, jen se to musi udelat trochu 
sloziteji nez uvadi dokumentace Dockeru. Aby Docker fungoval, je potreba 
verzi 1.7+. Nize jsou kroky, kterymi jej rozhodit.


1) VpsAdmin / VPS -> Enable features -> musis zapnout (vpska se zrestartuje)

2) echo "JoinControllers=cpu,cpuacct,cpuset freezer,devices" >> 
/etc/systemd/system.conf

3) 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) apt-get install curl -y

5) curl -sSL https://get.docker.com/ | sh (vyhodi chybu ohledne kernel 
modulu -> ignore a cekat :))

6) usermod -aG docker $USER

7) vim /lib/systemd/system/docker.service

    -ExecStart=/usr/bin/docker -d -H fd://
    +ExecStart=/usr/bin/docker -d -H fd:// -s vfs

8) systemctl daemon-reload

9) systemctl enable docker

10) systemctl start docker

11) systemctl status docker -> mel by v poradku bezet

12) test -> docker run --rm hello-world


Medved



More information about the Community-list mailing list