[Error] + docker cp -a init_docker:/tmp/openeuler-20.09-20210112.cgz /home/wcl/ Error: No such container:path: init_docker:/tmp/openeuler-20.09-20210112.cgz --- container/osimage/openeuler/lib | 2 +- container/osimage/openeuler/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/container/osimage/openeuler/lib b/container/osimage/openeuler/lib index e0b7017..34dd0ec 100755 --- a/container/osimage/openeuler/lib +++ b/container/osimage/openeuler/lib @@ -40,6 +40,6 @@ load_docker_image()
cp_image_to_host() { - docker cp -a init_docker:/tmp/${IMAGE_NAME} $HOME/ + docker cp -a initramfs_${image}:/tmp/${IMAGE_NAME} $HOME/ echo "result: $(ls $HOME/${IMAGE_NAME})" } diff --git a/container/osimage/openeuler/run b/container/osimage/openeuler/run index 5d7da72..6ed4069 100755 --- a/container/osimage/openeuler/run +++ b/container/osimage/openeuler/run @@ -24,5 +24,5 @@ cmd=( load_docker_image "${cmd[@]}" cp_image_to_host -docker_rm init_docker &> /dev/null +docker_rm initramfs_${image} &> /dev/null echo "build finished"