[deyu5@kvm4 ~]# vim Podmanfile [deyu5@kvm4 ~]# cat Podmanfile FROM registry.csie.cyut.edu.tw/rsyslog MAINTAINER dywang@csie.cyut.edu.tw RUN echo 'local4.* /var/log/journal/podmanfile.log' >> /etc/rsyslog.conf
[deyu5@kvm4 ~]$ podman build --tag=pmrsyslog --file Podmanfile STEP 1/3: FROM registry.csie.cyut.edu.tw/rsyslog STEP 2/3: MAINTAINER dywang@csie.cyut.edu.tw --> Using cache 54f5812ec2a59f41288c5f32d648b938556489f89da12ff4af2541947e3cb44c --> 54f5812ec2a STEP 3/3: RUN echo 'local4.* /var/log/journal/podmanfile.log' >> /etc/rsyslog.conf --> Using cache 9fe0c3653d3f6b0e7d83ab95939c3abb9885b5068d03097beb2f443857982d9b COMMIT pmrsyslog --> 9fe0c3653d3 Successfully tagged localhost/pmrsyslog:latest Successfully tagged localhost/myrsyslog:latest 9fe0c3653d3f6b0e7d83ab95939c3abb9885b5068d03097beb2f443857982d9b
[deyu5@kvm4 ~]$ podman build --tag=myrsyslog \ http://dywang.csie.cyut.edu.tw/materials/Podmanfile STEP 1/3: FROM registry.csie.cyut.edu.tw/rsyslog Trying to pull registry.csie.cyut.edu.tw/rsyslog:latest... Getting image source signatures Copying blob 8104e5e36684 done Copying blob bc8ac9851443 done Copying blob 745ce1c08bfe done Copying blob 718cd6a65a88 done Copying config 8411a1edd4 done Writing manifest to image destination Storing signatures STEP 2/3: MAINTAINER dywang@csie.cyut.edu.tw --> 54f5812ec2a STEP 3/3: RUN echo 'local4.* /var/log/journal/podmanfile.log' >> /etc/rsyslog.conf COMMIT myrsyslog --> 9fe0c3653d3 Successfully tagged localhost/myrsyslog:latest 9fe0c3653d3f6b0e7d83ab95939c3abb9885b5068d03097beb2f443857982d9b
[deyu5@kvm4 ~]$ podman images REPOSITORY TAG IMAGE ID CREATED SIZE localhost/pmrsyslog latest 9fe0c3653d3f 21 minutes ago 20 MB localhost/myrsyslog latest 9fe0c3653d3f 21 minutes ago 20 MB