1. registry.tar와 사용할 image 파일 준비
2. 노드에 podman 설치
3. Image upload
4. Image registry 컨테이너 실행
5. 확인
# regisry 파일
scp -r centos@192.168.1.100:/home/centos/registry.tar ~/registry.tar
# image로 사용할 파일
scp -r centos@192.168.1.100:/home/centos/my-images.tar ~/my-images.tar
tar xvf my-images.tar
sudo yum install podman -y
tar 파일을 이용하여 이미지를 load
[root@localhost ~]# podman load -i registry.tar
Getting image source signatures
Copying blob 7b9a3910f3c3 done
Copying blob de9819405bcf done
Copying blob 9a5d14f9f550 done
Copying blob b4592cba0628 done
Copying blob 3764c3e89288 done
Copying config 1fd8e1b0bb done
Writing manifest to image destination
Storing signatures
Loaded image(s): docker.io/library/registry:latest
생성된 registry image 확인
[root@localhost ~]# podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/registry latest 1fd8e1b0bb7e 10 months ago 26.8 MB
[root@localhost ~]# podman run -it -d -p5000:5000 --privileged -v ~/my-images:/var/lib/registry registry
29b597417d11e0095797fa3aabbcd04ce5ce70966e1261af0c71807bbc7659aa
[root@localhost ~]# podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
29b597417d11 docker.io/library/registry:latest /etc/docker/regis... 6 seconds ago Up 6 seconds ago 0.0.0.0:5000->5000/tcp trusting_chaplygin
curl localhost:5000/v2/_catalog