Please enable JavaScript.
Coggle requires JavaScript to display documents.
Docker (Image (Address - registry/repo: image (Registry (defaults to…
Docker
Image
-
-
-
Pull - gets fat manifest, then manifest if there is a match for our OS
Manifests gets layers by hash - can then authenticate when downloaded (2 hashes - the uncompressed and compressed (ditribution))
-
Dockerfile
Bridges gap between dev and ops, documents the app for other devs
Everything that creates (RUN, COPY) makes a new image (though it creates one for every step if you do docker history imagename the others will be 0 bytes)
When built, ALL files in the 'context' (folder you are in) are sent to Daemon so make sure you don't have files you don't need
-
Multi-stage
-
-
All the images from the early 'build' stages are still all there but we can delete them - only the code we want is part of the final image that we want to run
Container
-
-
CTRL P Q to exit the interaction, but leave the process running
Run-time args override CMD, but are appended to ENTRYPOINT
-
-
Networking
Each container has a bridge driver (docker0) - Linux or Nat driver - windows, but it's internal and isolated to the containers using that image
-
-
-
-
-
-
-
Windows
-
Hyper-V containers have there own OS (lightweight VM) - better isolated, can have different versions of windows or Linux --isolation=hyperv when you run it
-
Features
if you stop, and then start container it still has it's data
Swarms
= Cluster
-
Manager nodes
-
Odd number 3 or 5, only 1 is leader
-
-
-
-