Managing the Repository Container

Run the repository container management commands on the mirror host to manage the existing serving container and its persistent data.

Serving-only commands are used to manage the air-gapped repository container only. The commands mentioned in this topic do not synchronize with the upstream package repository that is available over the internet.

NOTE
The example commands specified in the following table use Docker and the default container name. Reuse --container-name <NAME> on every command if creation used a custom name.
Table 1. Repository container management commands
Action Command Effect
Start container. See Starting the Air-gapped Repository for details.
./airgap-repository start --runtime docker
Start an existing stopped managed container, wait for readiness, and print the URL.
Stop container. See Stopping the Air-gapped Repository for details.
./airgap-repository stop --runtime docker
Stop HTTP serving. Preserve the container and persistent data.
Restart container. See Restarting the Air-gapped Repository for details.
./airgap-repository restart --runtime docker
Restart the existing managed container, wait for readiness, and print the URL.
Remove container. See Removing the Air-gapped Repository for details.
./airgap-repository remove --runtime docker
Delete the serving container, including a running one. Preserve persistent repository content and caches. See Purging Air-gapped Repository Data to purge air-gapped repository container data.