Fix Docker registry configuration commands (dsr8MR2+, dsMR3)

The commands to configure and apply the service parameters related to
Docker proxy feature were outdated.

Partial-Bug: 2062079

Change-Id: Ib8d8deb19528120b7813d406ad9d5e6b952a760f
Signed-off-by: Joao Victor Portal <Joao.VictorPortal@windriver.com>
This commit is contained in:
Joao Victor Portal 2024-04-23 15:28:10 -03:00 committed by Juanita-Balaraj
parent 6ae2ae4fb4
commit fabaaeedc9
2 changed files with 25 additions and 13 deletions

View File

@ -86,8 +86,11 @@ To specify the HTTP proxy URL, use the commands:
::
system service-parameter-modify platform docker http_proxy http://my.proxy.com:1080
system service-parameter-apply platform
system service-parameter-add docker proxy http_proxy=http://my.proxy.com:1080
system service-parameter-apply docker
If the service parameter "http_proxy" already exists, use
`service-parameter-modify` instead of `service-parameter-add`.
-------------------
Set HTTPS proxy URL
@ -97,8 +100,11 @@ To specify the HTTPS proxy URL, use the commands:
::
system service-parameter-modify platform docker https_proxy https://my.proxy.com:1443
system service-parameter-apply platform
system service-parameter-add docker proxy https_proxy=https://my.proxy.com:1443
system service-parameter-apply docker
If the service parameter "https_proxy" already exists, use
`service-parameter-modify` instead of `service-parameter-add`.
-------------------------
Set no_proxy address list
@ -115,5 +121,8 @@ To specify a no_proxy list, use the commands:
::
system service-parameter-modify platform docker no_proxy: 1.2.3.4, 5.6.7.8
system service-parameter-apply platform
system service-parameter-add docker proxy no_proxy="1.2.3.4,5.6.7.8"
system service-parameter-apply docker
If the service parameter "no_proxy" already exists, use
`service-parameter-modify` instead of `service-parameter-add`.

View File

@ -18,17 +18,19 @@ otherwise inaccessible behind a firewall or proxy.
.. code-block:: none
~(keystone_user)$ system service-parameter-modify platform docker http_proxy http://<my.proxy.com>:1080
~(keystone_user)$ system service-parameter-apply platform
~(keystone_user)$ system service-parameter-add docker proxy http_proxy=http://<my.proxy.com>:1080
~(keystone_user)$ system service-parameter-apply docker
- To allow access over HTTPS:
.. code-block:: none
~(keystone_user)$ system service-parameter-modify platform docker https_proxy https://<my.proxy.com>:1443
~(keystone_user)$ system service-parameter-apply platform
~(keystone_user)$ system service-parameter-add docker proxy https_proxy=https://<my.proxy.com>:1443
~(keystone_user)$ system service-parameter-apply docker
If the service parameters "http_proxy" and/or "https_proxy" already exist,
use `service-parameter-modify` instead of `service-parameter-add`.
Substitute the correct value for <my.proxy.com>.
#. If you access registries that are not on the other side of the
@ -42,7 +44,8 @@ otherwise inaccessible behind a firewall or proxy.
.. code-block:: none
~(keystone_user)$ system service-parameter-modify platform docker no_proxy: 1.2.3.4, 5.6.7.8
~(keystone_user)$ system service-parameter-apply platform
~(keystone_user)$ system service-parameter-add docker proxy no_proxy="1.2.3.4,5.6.7.8"
~(keystone_user)$ system service-parameter-apply docker
If the service parameter "no_proxy" already exists, use
`service-parameter-modify` instead of `service-parameter-add`.