From ab40cbfe5892f9bacbe88ca4dc78cf6f320c0172 Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 27 Dec 2023 17:13:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=A3=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B0?= =?UTF-8?q?=20Docker=20=D0=BD=D0=B0=20Cent=20OS=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...%BA%D0%B0-Docker-%D0%BD%D0%B0-Cent-OS-7.md | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 %D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-Docker-%D0%BD%D0%B0-Cent-OS-7.md diff --git a/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-Docker-%D0%BD%D0%B0-Cent-OS-7.md b/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-Docker-%D0%BD%D0%B0-Cent-OS-7.md new file mode 100644 index 0000000..018c1dd --- /dev/null +++ b/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-Docker-%D0%BD%D0%B0-Cent-OS-7.md @@ -0,0 +1,41 @@ +Источник инструкции [Docker Docs](https://docs.docker.com/engine/install/centos/) + +### Удаляем старые версии +```bash +sudo yum remove docker \ + docker-client \ + docker-client-latest \ + docker-common \ + docker-latest \ + docker-latest-logrotate \ + docker-logrotate \ + docker-engine +``` + +### Установка с помощью RPM репозитория +- Установка пакета yum-utils (который предоставляет утилиту yum-config-manager) и настройка репозитория. + +```bash +sudo yum install -y yum-utils +sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo +``` + - Чтобы установить последнюю версию, запустите + +```bash +sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin +``` +- Запустить Докер +```bash +sudo systemctl start docker +``` +- добавить Docker в автозапуск +```bash +sudo systemctl enable docker.service +sudo systemctl enable docker.socket +``` +Проверить статус Docker +```bash +systemctl status docker +``` + +