16 578
правок
(Новая страница: «{{Draft}} Установка докера <syntaxhighlight lang="bash"> apt update apt install ca-certificates curl gnupg lsb-release </syntaxhighlight> <syntaxhighlight lang="bash"> echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null </syntaxhighlight> <syntaxhighlight l...») |
|||
Строка 1: | Строка 1: | ||
{{Draft}} | {{Draft}} | ||
== Подготовка к установке == | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Строка 18: | Строка 18: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Предварительная настройка == | |||
Настраиваем симлинк для конфигурации | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
mkdir /mnt/data/etc/docker | |||
ln -s /mnt/data/etc/docker /etc/docker | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Говорим, где хранить образы | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
mkdir /mnt/data/root/docker | mkdir /mnt/data/root/docker | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Строка 44: | Строка 41: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Установка == | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
apt update | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
apt-get install docker-ce docker-ce-cli containerd.io | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
docker run hello-world | docker run hello-world | ||
</syntaxhighlight> | </syntaxhighlight> |