Исходный код вики Docker. Сценарии
Редактировал(а) Alexandr Fokin 2024/11/23 17:37
Последние авторы
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 | Docker. Изменить время внутри контейнера | ||
19 | [[https:~~/~~/www.alexgur.ru/articles/6826/>>https://www.alexgur.ru/articles/6826/]] | ||
20 | |||
21 | {{code language="yaml"}} | ||
22 | # docker-compose | ||
23 | environment: | ||
24 | - TZ=America/Denver | ||
25 | {{/code}} | ||
26 | ))) | ||
27 | |(% style="width:158px" %) |(% style="width:1321px" %) |