Исходный код вики Docker. Сценарии
Версия 1.3 от Alexandr Fokin на 2024/11/21 17:15
Последние авторы
author | version | line-number | content |
---|---|---|---|
1 | |(% style="width:158px" %)Доступ в регистр по http|(% style="width:1321px" %)((( | ||
2 | Docker repository server gave HTTP response to HTTPS client | ||
3 | [[https:~~/~~/stackoverflow.com/questions/49674004/docker-repository-server-gave-http-response-to-https-client>>https://stackoverflow.com/questions/49674004/docker-repository-server-gave-http-response-to-https-client]] | ||
4 | |||
5 | Необходимо прописать адрес регистра в конфигурацию {{code language="cmd"}}/etc/docker/daemon.json{{/code}} и перезапустить службу. | ||
6 | {{code language="json"}}"insecure-registries":["<ip>:<port>"]{{/code}} | ||
7 | ))) | ||
8 | |(% style="width:158px" %)Отправка образа в регистр|(% style="width:1321px" %)((( | ||
9 | How to push a docker image to a private repository | ||
10 | [[https:~~/~~/stackoverflow.com/questions/28349392/how-to-push-a-docker-image-to-a-private-repository>>https://stackoverflow.com/questions/28349392/how-to-push-a-docker-image-to-a-private-repository]] | ||
11 | |||
12 | {{code language="cmd"}} | ||
13 | docker tag <SourceRegistryHost>/<name>:latest <TargerRegistryHost>/<name>:latest | ||
14 | docker push <TargerRegistryHost>/<name>:latest | ||
15 | {{/code}} | ||
16 | ))) | ||
17 | |(% style="width:158px" %) |(% style="width:1321px" %) | ||
18 | |||
19 |