Skip to content

ertaku12/docker-image-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Docker File System Extractor

A small Bash script to extract the complete filesystem from an OCI/Docker image layout.

Useful when you want to inspect image contents without running the container.


πŸš€ Usage

  1. Save a Docker image to a tarball:

    docker save IMAGE_NAME -o image.tar
  2. Extract the image tarball:

    mkdir image_contents
    
    tar -xf image.tar -C image_contents
  3. Run the extractor:

    ./docker-image-extractor.sh /path/to/image_contents /path/to/output

πŸ“‚ Example

docker pull alpine:latest

docker save alpine:latest -o alpine.tar

mkdir alpine_contents

tar -xf alpine.tar -C alpine_contents

./docker-image-extractor.sh alpine_contents alpine_rootfs

Now you can inspect the full Alpine filesystem inside ./alpine_rootfs.

About

Extract the full filesystem from a Docker/OCI image layout without running a container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages