Short Introduction to Docker. These slides show the basic idea behind the container technology Docker. The slides present the basic features for the daily use with Docker, Docker Compose, Docker Machine and Docker Swarm.
Docker is specially important for DevOps, because it gives Software Developers more control about their dependencies in different environments.
16. What is Docker?
❖ Open Source Project started in March 2013
❖ From the makes of dotCloud (PaaS).
❖ Received $162 Million Funding.
❖ Community grows rapidly!
17. What is Docker?
❖ Tiny VM (25 MB)
❖ Linux based - LXC Interface / libcontainer
❖ Own Namespaces and Cgroups!
❖ Shared resources with host system.
❖ It doesn’t work natively on Windows! Not yet!
18. Build - Ship - Run
Docker-Hub
Build RUN
RUN
RUN
docker push
docker pull
Server Farm Production
25. Fetch a Docker Image
> docker pull reiz/nginx:1.0.0
Download docker image reiz/nginx:1.0.0 from Docker Hub to local
Docker repository.
26. Run a Docker Container
> docker run reiz/nginx:1.0.0
Creates a Docker container out of the Docker image reiz/nginx:1.0.0.
It runs the nginx process.
33. Mount a Volume
> docker run -v/mnt/mongodb:/data -d reiz/mongodb:1.0.2
Mounts “/mnt/mongodb” directory into the Docker container as “/data”.
Keep the data on the host. That’s how you keep data persisted.
35. Set environment variables
> docker run --envLANG=en_US.UTF-8 -d reiz/mongodb:1.0.2
You can overwrite ENV variables from the Dockerfile here and also define
completely new ones.