Introducing containers
|
Almost all software depends on other software components to function, but these components have independent evolutionary paths.
Projects involving many software components can rapidly run into a combinatoric explosion in the number of software version configurations available, yet only a subset of possible configurations actually works as desired.
Containers collect software components together and can help avoid software dependency problems.
Virtualisation is an old technology that container technology makes more practical.
Docker is just one software platform that can create containers and the resources they use.
|
Introducing the Docker command line
|
|
Creating containers
|
Containers are usually created using command line invocations.
The docker run command creates containers from images.
The docker image command can list and manage images that are (now) on your computer.
The docker container command can list and manage containers that have been created.
|
Visiting the Docker Hub
|
The Docker Hub is an online repository of container images.
Many Docker Hub images are public, and may be officially endorsed.
Each Docker Hub page about an image provides structured information and subheadings
Most Docker Hub pages about images contain sections that provide examples of how to use those images.
|
Creating your own container images
|
Dockerfiles specify what is within Docker images.
The docker build command is used to build an image from a Dockerfile
You can share your Docker images through the Docker Hub so that others can create Docker containers from your images.
You can include files from your Docker host into your Docker images by using the COPY instruction in your Dockerfile .
Docker allows containers to read and write files from the Docker host.
|
Creating containers in the cloud
|
You can create Docker containers on cloud computing resources just using a web browser.
Bitbucket is an online repository storage service that can create Docker containers to perform computation in response to files changing in your repositories.
|
Containers used in generating this lesson
|
|