Skip to content

Instantly share code, notes, and snippets.

@spipm
Created June 23, 2023 17:24
Show Gist options
  • Save spipm/97caacf7932647870cc4a64495665ebf to your computer and use it in GitHub Desktop.
Save spipm/97caacf7932647870cc4a64495665ebf to your computer and use it in GitHub Desktop.
Extract docker container image to folder
#!/bin/bash
docker create --name extract_test repo.foo.bar/some_image:v1337
mkdir container
docker export extract_test | tar xvf - -C container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment