Docker
Last updated
Last updated
Docker is a platform to develop, deploy, and run applications inside containers.
Docker containers are superior to virtual machines because they take fewer resources, are very portable, and are faster to spin up.
Holds things: There are things both inside and outside of a container
Is portable: Cam be used your local machine, coworker's machine or on the cloud
Has clear interfaces for access: Configure to interact through the command line
Can be obtained from a remote location: Registry keeps an image which can create containers on demand
Docker container is a Docker image brought to life
Superior to virtual machines because containers take fewer resources, are very portable, and are faster to spin up
An image contains the Dockerfile, libraries, and code your application needs to run, all bundled together
docker run image_name
creates and starts a container from an image
A recipe file with instructions for how Docker should build your image
Base image layer: Used to build the initial image layer
Example: ubuntu, node
Additional layers can then be stacked on top of the base image layers
Example: Libraries such as alfresco-content-repository, es6-angular-webpack
Thin writable layer
Share your image with others
Docker Hub is the largest registry
https://towardsdatascience.com/learn-enough-docker-to-be-useful-1c40ea269fa8
https://towardsdatascience.com/learn-enough-docker-to-be-useful-b0b44222eef5
https://towardsdatascience.com/slimming-down-your-docker-images-275f0ca9337e
https://towardsdatascience.com/15-docker-commands-you-should-know-970ea5203421
https://towardsdatascience.com/pump-up-the-volumes-data-in-docker-a21950a8cd8