Advertisement
sxiii

EXAMINE THE DOCKER CONTAINER (Search for files, etc.)

May 10th, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #### EXAMINE THE DOCKER CONTAINER (Search for files, etc.)
  2. # If you want to examine your docker container, please download it from your server to a directory,
  3. # unpack the main TAR, enter unpacked directory with a terminal and do:
  4. for line in $(ls); do cd $line; tar -xf layer.tar; rm layer.tar; cd ..; done
  5. # This will unpack all docker "layers" and then you can just search over them with
  6. find . -name 'myfile'
  7. # Good luck.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement