Presentation at DotNet Conf on using Docker with .NET core. Basic commands of docker, docker compose, and using a database Postgres with docker and asp .net core.
2. Agenda
- What is docker?
◦ Images and Containers
◦ Docker vs VM
◦ Tools
- Dockerfile
- Docker linking with other containers
- Docker compose
- Summary
3. What is Docker?
- Lightweight, open, secure platform
- Simplify building, shipping, running apps
- Shipping container system for code
- Runs natively on Linux or Windows Server
- Runs on Windows or Mac Development machines (with a virtual machine or Hyper-V)
- Relies on "images" and "containers"
5. Docker Image
- Ubuntu, DotNet Core, Node etc
- An image is an inert, immutable, file essentially a snapshot of a container
- A read-only template composed of layered filesystems used to share common files
- Create Docker container instances
- Created by docker build command
- Stored in Docker registry (Docker Hub)
6. Docker Container
- Container is an instance of your image but running
- Using the docker run command
- An isolated and secured shipping container
- created from an image that can be run, started, stopped, moved and deleted