https://rancher.com/ logo
Title
e

echoing-helmet-91774

11/18/2022, 12:33 PM
I am using rancher desktop in a windows vm to create the docker image but i am not able to find the path where it is storing all the images it builds. Help is appreciated
w

wide-mechanic-33041

11/18/2022, 12:38 PM
I believe all created images and their requisite layers stored in the docker-data vhdx file mounted to the wsl instance
e

echoing-helmet-91774

11/18/2022, 12:39 PM
How can we access that
w

wide-mechanic-33041

11/18/2022, 12:39 PM
you should be able to use docker save to export the tarball if you need
e

echoing-helmet-91774

11/18/2022, 12:39 PM
As i am using windows host so it is not mountable
w

wide-mechanic-33041

11/18/2022, 12:39 PM
well its a linux file system?
whats the goal?
e

echoing-helmet-91774

11/18/2022, 12:40 PM
I want to take that image out wherever rancher is storing image and publish it
Using windows host
And made rhel image
w

wide-mechanic-33041

11/18/2022, 12:41 PM
well that would be docker push to your private registry
e

echoing-helmet-91774

11/18/2022, 12:41 PM
Ok , but is there some way that I can see the image in my host ?
w

wide-mechanic-33041

11/18/2022, 12:42 PM
remember its not really a single archive unless you save it as sucj
just a mess of file system layers
e

echoing-helmet-91774

11/18/2022, 12:43 PM
Can we get archive out it ?
w

wide-mechanic-33041

11/18/2022, 12:43 PM
and no the fs layers would not be visible to windows since they are only usable on linux
e

echoing-helmet-91774

11/18/2022, 12:43 PM
Like using zip or rar file
w

wide-mechanic-33041

11/18/2022, 12:43 PM
yup… use docker save
e

echoing-helmet-91774

11/18/2022, 12:44 PM
Please can your provide the command
w

wide-mechanic-33041

11/18/2022, 12:44 PM
it will create a tar.gz of all the bitx
just did …. “docker save”
e

echoing-helmet-91774

11/18/2022, 12:44 PM
Do I need to provide image name as well ?
And what about path ?
w

wide-mechanic-33041

11/18/2022, 12:44 PM
look at the help on that command
e

echoing-helmet-91774

11/18/2022, 12:44 PM
Ok
Thanks 👍
w

wide-mechanic-33041

11/18/2022, 12:46 PM
it will be something like docker save <imageid> -o myimage.tar.gz
e

echoing-helmet-91774

11/18/2022, 12:46 PM
Cool thanks
I will try it
s

steep-airplane-89460

11/24/2022, 2:33 PM
I use containerd and the command is ... nerdctl -n default save -o name-of-image.tar name-of-image:latest ( assuming its in the default namespace, otherwise k8s.io)