This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| manuals:vps:vpsadminos:docker [2023/02/02 23:50] – deleted openVZ parolek | manuals:vps:vpsadminos:docker [2026/08/16 18:56] (current) – Polish documentation, localize examples and explain the one-week VPS trial aither | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | < | + | < |
| ====== Docker on vpsAdminOS ====== | ====== Docker on vpsAdminOS ====== | ||
| - | We support latest version of Docker on our [[manuals: | ||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | As there are not everytime latest packages in distribution repos, we recommend to instead use the docker.com ones. Installation of these can be done easily on: | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | Other distributions are not tested, but there is big chance they will be totally fine. Feel free to modify this page afterwise. | ||
| - | |||
| - | === Ubuntu 18.04 LTS === | ||
| - | < | ||
| - | apt-get -y update | ||
| - | apt-get -y install apt-transport-https ca-certificates curl software-properties-common | ||
| - | curl -fsSL https:// | ||
| - | add-apt-repository "deb [arch=amd64] https:// | ||
| - | apt-get -y update | ||
| - | apt-get -y install docker-ce | ||
| - | </ | ||
| - | |||
| - | === Fedora 33 === | ||
| - | The upstream version of docker // | ||
| - | < | ||
| - | dnf install -y moby-engine | ||
| - | </ | ||
| - | |||
| - | It's necessary to configure the //dockerd// daemon to run with cgroupdriver=cgroupfs, | ||
| - | < | ||
| - | $ docker run hello-world | ||
| - | docker: Error response from daemon: OCI runtime create failed: cgroup v2 not enabled on this host, can't use systemd (rootless) as cgroups manager: unknown. | ||
| - | </ | ||
| - | |||
| - | To configure the cgroup driver one needs to override the // | ||
| - | < | ||
| - | $ systemctl edit docker | ||
| - | ExecStart=/ | ||
| - | --host=fd:// | ||
| - | --exec-opt native.cgroupdriver=cgroupfs \ | ||
| - | $OPTIONS | ||
| - | </ | ||
| - | ==== General stuff ==== | ||
| - | Checking that docker is running smoothly: | ||
| - | |||
| - | < | ||
| - | systemctl status docker.service | ||
| - | |||
| - | ● docker.service - Docker Application Container Engine | ||
| - | Loaded: loaded (/ | ||
| - | Active: active (running) since Sun 2020-02-23 14:55:22 UTC; 9s ago | ||
| - | Docs: https:// | ||
| - | Main PID: 2893 (dockerd) | ||
| - | | ||
| - | CGroup: / | ||
| - | └─2893 / | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | If service " | ||
| - | < | ||
| - | mv / | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | Now we can try '' | ||
| - | |||
| - | < | ||
| - | docker run hello-world | ||
| - | |||
| - | Hello from Docker! | ||
| - | This message shows that your installation appears to be working correctly. | ||
| - | [...] | ||
| - | </ | ||
| - | |||
| - | Test of networking can be done with: | ||
| - | < | ||
| - | docker run -it alpine ping -c 3 vpsfree.cz | ||
| - | </ | ||
| - | ===== Something not working? ===== | + | This guide has moved to [[manuals:vps:docker|Docker in a VPS]]. |
| - | If any command result prints // | + | |
| - | We can fix this, but we really need to know way how to reproduce it and know your VPS ID. | + | |
| - | Come by to [[informace:chat|IRC]] #vpsfree / #vpsadminos or mail us on support. | + | |