Configuring the Local Repository and Image
Perform operations in this section on physical nodes.
- Pull the local repository registry:2.
1podman pull docker.io/library/registry:2
If you cannot access the external network, run the following commands or manually download the package and import it to the current node.1 2 3
git config --global http.sslVerify false git config --global https.sslVerify false git clone https://github.com/NotGlop/docker-drag.git
- Start the local repository.
1podman load -i registry_2.tar
- Modify the container configuration file /etc/containers/registries.conf.
1 2 3 4 5
unqualified-search-registries = ["[IP]", "quay.io"] short-name-mode="enforcing" [[registry]] location = "[IP]:5000" insecure = true
[IP] indicates the actual local IP address.
- Modify the local repository settings.
1 2
mkdir -p /home/registry-data podman run -d -p 5000:5000 -v /home/registry-data:/var/lib/registry --restart always --name registry localhost/registry:2
- Import the Ceph deployment image generated in Creating a Deployment Image.
1podman load -i ceph_release.tar
- Rename the image and upload it to the local repository.
1 2
podman tag 8bbba7d5cc80 [IP]:5000/ceph/ceph_release:v17.2.7 podman push [IP]:5000/ceph/ceph_release:v17.2.7 [IP]:5000/ceph/ceph_release:v17.2.7
- 8bbba7d5cc80 indicates the image ID corresponding to ceph_release.tar, and [IP] indicates the local IP address. Replace them with the actual values.
- If the gateway timeout error is reported during the push, check whether any proxy is configured. If yes, disable the proxy.
1 2
unset http_proxy unset https_proxy
- Modify DEFAULT_IMAGE in the cephadm file.
1 2 3
vim /usr/sbin/cephadm yum install cephadm DEFAULT_IMAGE = "[IP]:5000/ceph/ceph_release:v17.2.7"
- Modify the container creation permission (run_cmd function) in cephadm as follows:
1if self.privileged --> if self.privileged or not self.privileged
- /usr/sbin/cephadm can be installed by configuring the Ceph 17 source or directly copying cephadm in the source code.
- [IP] indicates the actual local IP address.
Parent topic: Deploying Ceph on Physical Machines