Docker Image to .tar
file Conversion
- List
docker
images to identify the image you want to convert into atar
file. Use the following command to list your images:
docker images
- Once you have identified the image, you can proceed to save it as a
tar
file. Use the following command, replacingimage_name
with the actual name or ID of your image:
docker save -o image_name.tar image_name
-
Docker will save the image as a
tar
file in the current directory. You can verify this by listing the files using thels
command. -
For example