Created
July 28, 2016 14:08
-
-
Save jlandure/996cf90c89ab13f8f26cb74608735cfe to your computer and use it in GitHub Desktop.
How to strip Docker images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -t durdn/minimal-java /bin/true | |
| docker export `docker ps -q -n=1` | docker import - durdn/minimal-java:stripped | |
| docker history durdn/minimal-java:stripped | |
| # cf https://developer.atlassian.com/blog/2015/08/minimal-java-docker-containers/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment