Docker: Difference between revisions
No edit summary |
Tags: Mobile edit Mobile web edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
* Access the host from within the container using 172.17.0.1. | * Access the host from within the container using 172.17.0.1. | ||
** On Windows and OS X, this is automatically aliased to <tt>host.docker.internal</tt>. | ** On Windows and OS X, this is automatically aliased to <tt>host.docker.internal</tt>. | ||
==Flattening an image== | |||
You can't flatten an ''image'', so far as I know, but you can flatten a ''container into an image'': | |||
<tt>docker export CID > flatten.tar</tt> | |||
<tt>docker import - INAME < flatten.tar</tt> | |||
('''FIXME''' can you pipe one into the other, eliminating the middleman?) | |||