Check out my first novel, midnight's simulacra!

Docker: Difference between revisions

From dankwiki
(Created page with "Fuck Docker, in general.")
 
Tags: mobile web edit mobile edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Fuck Docker, in general.
Fuck Docker, in general.
==Networking==
* 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>.
==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?)

Latest revision as of 15:35, 12 February 2021

Fuck Docker, in general.

Networking

  • Access the host from within the container using 172.17.0.1.
    • On Windows and OS X, this is automatically aliased to host.docker.internal.

Flattening an image

You can't flatten an image, so far as I know, but you can flatten a container into an image:

docker export CID > flatten.tar

docker import - INAME < flatten.tar

(FIXME can you pipe one into the other, eliminating the middleman?)