File: prepare_image.sh

package info (click to toggle)
golang-github-containerd-accelerated-container-image 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,500 kB
  • sloc: sh: 351; python: 59; makefile: 30
file content (11 lines) | stat: -rwxr-xr-x 139 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

from=${1:?}
to=${2:?}

set -x

ctr i pull "${from}"
ctr i tag "${from}" "${to}"
ctr i push "${to}"
ctr i rm "${from}" "${to}"