@@ -486,17 +486,17 @@ day (depending on the number of images being created).
486
486
487
487
To hard prune orphaned blobs from the registry:
488
488
489
- . +++<b> Log in:</b>+++ Log in using xref:../cli_reference/get_started_cli.adoc#basic-setup-and-login[the CLI] as a user with an
489
+ . * Log in*: Log in using xref:../cli_reference/get_started_cli.adoc#basic-setup-and-login[the CLI] as a user with an
490
490
xref:../architecture/additional_concepts/authentication.adoc#oauth[access token].
491
491
492
- . +++<b> Run a basic image prune:</b>+++ Basic image pruning removes additional
492
+ . * Run a basic image prune*: Basic image pruning removes additional
493
493
images that are no longer needed. The hard prune does not remove images on its
494
494
own. It only removes blobs stored in the registry storage. Therefore, you should
495
495
run this just before the hard prune.
496
496
+
497
497
See Pruning Images for steps.
498
498
499
- . +++<b> Switch the registry to read-only mode:</b>+++ If the registry is not
499
+ . * Switch the registry to read-only mode*: If the registry is not
500
500
running in read-only mode, any pushes happening at the same time as the prune
501
501
will either:
502
502
+
@@ -529,7 +529,7 @@ $ oc rollout -n default \
529
529
latest dc/docker-registry
530
530
----
531
531
532
- . +++<b> Add the system:image-pruner role:</b>+++ The service account used to run
532
+ . * Add the system:image-pruner role*: The service account used to run
533
533
the registry instances requires additional permissions in order to list some
534
534
resources.
535
535
@@ -549,7 +549,7 @@ $ oc adm policy add-cluster-role-to-user \
549
549
${service_account}
550
550
----
551
551
552
- . +++<b> (Optional) Run the pruner in dry-run mode:</b>+++ To see how many blobs
552
+ . * (Optional) Run the pruner in dry-run mode*: To see how many blobs
553
553
would be removed, run the hard pruner in dry-run mode. No changes are actually
554
554
made:
555
555
+
@@ -589,7 +589,7 @@ Would free up 2.835 GiB of disk space
589
589
Use -prune=delete to actually delete the data
590
590
----
591
591
592
- . +++<b> Run the hard prune:</b>+++ Execute the following command inside one
592
+ . * Run the hard prune*: Execute the following command inside one
593
593
running instance of *docker-registry* pod to run the hard prune:
594
594
+
595
595
----
@@ -607,7 +607,7 @@ Deleted 13374 blobs
607
607
Freed up 2.835 GiB of disk space
608
608
----
609
609
610
- . +++<b> Switch the registry back to read-write mode:</b>+++ After the prune is
610
+ . * Switch the registry back to read-write mode*: After the prune is
611
611
finished, the registry can be switched back to read-write mode by executing:
612
612
+
613
613
----
0 commit comments