Skip to main content

Установка хранилища образов Docker

Установка производится на сервере с ролью squadus_infra. Перед началом установки необходимо проверить, что вход выполнен под пользователем root.

Этапы установки:

  1. Скопировать файл squadus_infra_``<RELEASE>``.run на сервер squadus_infra.
  2. Запустить скрипт установки:
bash squadus_infra_``<RELEASE>``.run
  1. Согласиться на продолжение установки, нажав на клавишу «Y».
root@squadus_infra ~]# bash ./squadus_infra_``<RELEASE>``.run
Verifying archiveintegrity...100% All good.
Uncompressing Squadus Infrastructure Node Package ``<RELEASE>``100%
#
# Copyright (c) New Cloud Technologies, Ltd., 2013-2024 #
# You can not use the contents of the file in any way without New Cloud Technologies, Ltd. written permission.
# To obtain such a permit, you should contact New Cloud Technologies, Ltd. at http://ncloudtech.com/contact.html
# Welcome to Squadus Infrastructure Installer version ``<RELEASE>``
This script is meant to be used on Infrastructure Server (see manualfor default)
Do you want to continue? [y/N] Y
Check if the script is run with superuser privileges[ OK ]
Make sure that the operating systemis compatible[ OK ]
Ensurethat yum-utils is installed[ OK ]

Администратору отобразится следующее (список отображения может меняться в зависимости от выбранной ОС):

Ensure that docker-ce repository is availiable[ OK ]
Ensure that docker is installed [ OK ]
Ensure that jq package is installed[ OK ]
Ensure that docker dir exists[ OK ]
Ensure that docker daemon config exists[ OK ]
Check if docker daemon needs to be restarted[ OK ]
Ensure that docker is started[ OK ]
Ensure that docker is enabled[ OK ]
Check if docker is availiable[ OK ]
Ensure that registry image is available[ OK ]
Check if container with registry is available[CHANGE]
Ensure that registry configuration directory exists[ OK ]
Ensure that docker-registry env file exists[ OK ]
Check if old registry data directory exists[CHANGE]
Ensure that registry data directory exists[CHANGE]
Ensure that container with registry is available[CHANGE]
Wait for docker-registry to start[ OK ]
Ensure that docker-registry is running[ OK ]
Extracting registry archive...[ OK ]
Remove dangling and outdated images[ OK ]

После этого установка хранилища образов Docker (docker_registry) будет завершена.

Внимание

При использовании веб-прокси после установки хранилища образов Docker (docker_registry) следует удалить из файла /etc/environment строки, добавленные в соответствии с разделом Подготовка веб-прокси на серверах с ролью operator и squadus_infra.