mirror of
https://github.com/containers/skopeo.git
synced 2026-02-03 07:48:30 +00:00
Update example scripts to use the new CLI syntax
Update the scripts in examples/ to adapt to changes in the CLI. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> Closes: #48 Approved by: rhatdan
This commit is contained in:
committed by
Atomic Bot
parent
b8214c4cff
commit
75c13530ac
@@ -9,8 +9,8 @@ ocic image list
|
||||
read
|
||||
: "[1m Create a working container, and capture its name [0m"
|
||||
read
|
||||
echo '[container1=`buildah from --image ${1:-ubuntu}`]'
|
||||
container1=`buildah from --image ${1:-ubuntu}`
|
||||
echo '[container1=`buildah from ${1:-ubuntu}`]'
|
||||
container1=`buildah from ${1:-ubuntu}`
|
||||
read
|
||||
: "[1m Mount that working container, and capture the mountpoint [0m"
|
||||
read
|
||||
@@ -24,7 +24,7 @@ echo yay > $mountpoint1/file-in-root
|
||||
read
|
||||
: "[1m Produce an image from the container [0m"
|
||||
read
|
||||
buildah commit "$container1" --output containers-storage:${2:-first-new-image}
|
||||
buildah commit "$container1" containers-storage:${2:-first-new-image}
|
||||
read
|
||||
: "[1m Verify that our new image is there [0m"
|
||||
read
|
||||
@@ -41,8 +41,8 @@ systemctl stop ocid
|
||||
read
|
||||
: "[1m You know what? Go ahead and use that image we just created, and capture its name [0m"
|
||||
read
|
||||
echo '[container2=`buildah from --image=${2:-first-new-image}`]'
|
||||
container2=`buildah from --image=${2:-first-new-image}`
|
||||
echo '[container2=`buildah from ${2:-first-new-image}`]'
|
||||
container2=`buildah from ${2:-first-new-image}`
|
||||
read
|
||||
: "[1m Mount that new working container, and capture the mountpoint [0m"
|
||||
read
|
||||
@@ -60,7 +60,7 @@ echo yay > $mountpoint2/another-file-in-root
|
||||
read
|
||||
: "[1m Produce an image from the new container[0m"
|
||||
read
|
||||
buildah commit "$container2" --output containers-storage:${3:-second-new-image}
|
||||
buildah commit "$container2" containers-storage:${3:-second-new-image}
|
||||
read
|
||||
: "[1m Unmount our new working container and delete it [0m"
|
||||
read
|
||||
|
||||
@@ -13,8 +13,8 @@ ocic image list
|
||||
read
|
||||
: "[1m Create a working container, and capture its name [0m"
|
||||
read
|
||||
echo '[container1=`buildah from --pull --image ${1:-alpine}`]'
|
||||
container1=`buildah from --pull --image ${1:-alpine}`
|
||||
echo '[container1=`buildah from ${1:-alpine}`]'
|
||||
container1=`buildah from ${1:-alpine}`
|
||||
read
|
||||
: "[1m Mount that working container, and capture the mountpoint [0m"
|
||||
read
|
||||
|
||||
Reference in New Issue
Block a user