Carter Barnes
$
App
Server
OS
VM
%
App
OS
VM
%
App
OS
VM
%
App
OS
VM
%
Hypervisor
Host Operating System
% CPU
% RAM
% HD
Licensing
App
Server
App
App
App
App
Server
OS
VM
%
App
OS
VM
%
App
OS
VM
%
App
OS
VM
%
Hypervisor
Host Operating System
Simplify, then add lightness
- Colin Chapman
Host Operating System
Container Host
Install it...
Images are filesystem and parameters to use at runtime. They don't have state and never change.
Containers are running instances of images.
Volumes are directories designed to persist data, independent of the container’s life cycle.
docker run
-v ${PWD}:/app
microsoft/dotnet
FROM
COPY
ENTRYPOINT
ENV
EXPOSE
RUN
WORKDIR
FROM microsoft/dotnet
WORKDIR /app
COPY . .
RUN ["dotnet", "restore"]
RUN ["dotnet", "build"]
EXPOSE 5000/tcp
ENV ASPNETCORE_URLS http://*:5000
ENTRYPOINT ["dotnet", "run"]Demo Dockerfile
Profile Service
Checklist Service
Cache
Database
Demo Docker-Compose