Skip to content

Commit

Permalink
added man page style doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Jun 29, 2015
1 parent 4dfd119 commit d7fbffa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -8,6 +8,20 @@ Why is this useful?
1. It minimizes the size of your docker images, which speeds up load times
2. It minimizes the attack surface: if you get in the container, there is nothing there..

## Synopsis
strip-docker-image -i image-name -t target-image-name -t [-p package | -f file] [-x expose-port] [-v]
## Options
-i image-name to strip
-t target-image-name the image name of the stripped image
-p package package to include from image, multiple -p allowed.
-f file file to include from image, multiple -f allowed.
-x port to expose.
-v verbose

## Description
creates a new Docker image based on the scratch which contains only the the source image of selected packages and files.

## Example
The following example strips the nginx installation from the default NGiNX docker image,

Expand Down

0 comments on commit d7fbffa

Please sign in to comment.