Sysops Notepad

[Linux] Buildah, Podman, Skopeo 설치 및 참고 본문

업무/etc

[Linux] Buildah, Podman, Skopeo 설치 및 참고

sysops 2019. 5. 14. 10:01

 

Podman 포드맨 
https://podman.io/ 
https://github.com/projectatomic/libpod 

 

Buildah 빌다 
https://github.com/projectatomic/buildah 

Skopeo 스코피오 
https://github.com/projectatomic/skopeo 

 

Installing podman
# subscription-manager repos --disable=’*’
# subscription-manager repos --enable=rhel-7-server-rpms
# subscription-manager repos --enable=rhel-7-server-extras-rpms
# subscription-manager repos --enable=rhel-7-server-optional-rpms
# yum -y install buildah skopeo podman

# podman -h


# podman images

Run a container image
# podman run -it registry.access.redhat.com/rhel7/rhel /bin/bash

# podman ps -a

# podman pull registry.access.redhat.com/rhel7/rhel


Remove a container or image
# podman rm 440becd26893

Remove a container image by its image ID or name

# podman rmi registry.access.redhat.com/rhel7/rhel-minimal
# podman rmi de9c26f23799
# podman rmi -f registry.access.redhat.com/rhel7/rhel:latest


Build a container
# cat Dockerfile
FROM registry.access.redhat.com/rhel7/rhel-minimal
ENTRYPOINT "echo "Podman build this container."

# podman build -t podbuilt .
STEP 1: FROM registry.access...
...
Writing manifest to image destination
Storing signatures
91e043c11617c08d4f8...

# podman run podbuilt
Podman build this container.



참고:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/managing_containers/finding_running_and_building_containers_without_docker
http://saharsh.org/2019/01/18/buildah_podman_skopeo/

Comments